kmsan: Export kmsan_mark_mbuf() and kmsan_mark_bio()

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2021-08-11 16:22:21 -04:00
parent 95c51fafa4
commit 10a8e93da1
2 changed files with 6 additions and 2 deletions

View File

@ -549,7 +549,7 @@ kmsan_mark(const void *addr, size_t size, uint8_t c)
kmsan_shadow_fill((uintptr_t)addr, c, size);
}
static void
void
kmsan_mark_bio(const struct bio *bp, uint8_t c)
{
kmsan_mark(bp->bio_data, bp->bio_length, c);
@ -591,7 +591,7 @@ kmsan_mark_ccb(const union ccb *ccb, uint8_t c)
}
}
static void
void
kmsan_mark_mbuf(const struct mbuf *m, uint8_t c)
{
do {

View File

@ -62,6 +62,8 @@ void kmsan_bus_dmamap_sync(struct memdesc *, bus_dmasync_op_t);
void kmsan_orig(const void *, size_t, int, uintptr_t);
void kmsan_mark(const void *, size_t, uint8_t);
void kmsan_mark_bio(const struct bio *, uint8_t);
void kmsan_mark_mbuf(const struct mbuf *, uint8_t);
void kmsan_check(const void *, size_t, const char *);
void kmsan_check_bio(const struct bio *, const char *);
@ -77,6 +79,8 @@ void kmsan_check_mbuf(const struct mbuf *, const char *);
#define kmsan_dma_load(m, b, s, o)
#define kmsan_orig(p, l, c, a)
#define kmsan_mark(p, l, c)
#define kmsan_mark_bio(b, c)
#define kmsan_mark_mbuf(m, c)
#define kmsan_check(b, s, d)
#define kmsan_check_bio(b, d)
#define kmsan_check_ccb(c, d)