The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=10a8e93da15889d40497bb666c2d753f38ac7b7f
commit 10a8e93da15889d40497bb666c2d753f38ac7b7f Author: Mark Johnston <[email protected]> AuthorDate: 2021-08-11 20:22:21 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2021-08-11 20:33:41 +0000 kmsan: Export kmsan_mark_mbuf() and kmsan_mark_bio() Sponsored by: The FreeBSD Foundation --- sys/kern/subr_msan.c | 4 ++-- sys/sys/msan.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_msan.c b/sys/kern/subr_msan.c index 2b6a0d585128..81322da2be6c 100644 --- a/sys/kern/subr_msan.c +++ b/sys/kern/subr_msan.c @@ -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 { diff --git a/sys/sys/msan.h b/sys/sys/msan.h index 70e354323247..4baa71ec8113 100644 --- a/sys/sys/msan.h +++ b/sys/sys/msan.h @@ -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) _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "[email protected]"
