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
This commit is contained in:
Mark Johnston 2021-09-17 12:12:02 -04:00
parent 197a4f29f3
commit 40fcdb9366

View File

@ -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;