hwpmc: Disable KASAN in pmc_save_kernel_callchain()

As in commit 831850d8b0, this routine can trigger false positives, so
exclude it from instrumentation.

Reported by:	pho
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2021-07-09 20:38:11 -04:00
parent f08f0ae524
commit 5d243d41b1

View File

@ -156,7 +156,7 @@ pmc_save_user_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
* code, and if so we terminate our trace.
*/
int
int __nosanitizeaddress
pmc_save_kernel_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
{
int n;