git: 40fcdb9366d5 - main - kcov: Disable address and memory sanitizers in get_kinfo()

Mark Johnston markj at FreeBSD.org
Fri Sep 17 19:12:29 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=40fcdb9366d51400259020accaac9df212bd9508

commit 40fcdb9366d51400259020accaac9df212bd9508
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-09-17 16:12:02 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-09-17 18:19:05 +0000

    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;


More information about the dev-commits-src-main mailing list