The branch main has been updated by markj:

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

commit 40fcdb9366d51400259020accaac9df212bd9508
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2021-09-17 16:12:02 +0000
Commit:     Mark Johnston <ma...@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;
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to