diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-09-17 16:12:02 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-09-17 18:19:05 +0000 |
commit | 40fcdb9366d51400259020accaac9df212bd9508 (patch) | |
tree | 033ddfa9180915f33ca3cc5fa59ccb4195cd1981 | |
parent | 197a4f29f39e6ae6215a6dbd28ef449d305e6d49 (diff) | |
download | src-40fcdb9366d51400259020accaac9df212bd9508.tar.gz src-40fcdb9366d51400259020accaac9df212bd9508.zip |
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
-rw-r--r-- | sys/kern/kern_kcov.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |