From 40fcdb9366d51400259020accaac9df212bd9508 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 17 Sep 2021 12:12:02 -0400 Subject: kcov: Disable address and memory sanitizers in get_kinfo() get_kinfo() is only called from the coverage sanitizer callbacks, which are similarly uninstrumented. Sponsored by: The FreeBSD Foundation --- sys/kern/kern_kcov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_kcov.c b/sys/kern/kern_kcov.c index 7a11f800c7ce..1f8b62df7b4b 100644 --- a/sys/kern/kern_kcov.c +++ b/sys/kern/kern_kcov.c @@ -165,7 +165,7 @@ SYSCTL_UINT(_kern_kcov, OID_AUTO, max_entries, CTLFLAG_RW, static struct mtx kcov_lock; static int active_count; -static struct kcov_info * +static struct kcov_info * __nosanitizeaddress __nosanitizememory get_kinfo(struct thread *td) { struct kcov_info *info; -- cgit v1.2.3