stack(9): Disable KASAN in stack_capture()

When unwinding the stack, we may encounter a stack frame in a poisoned
region of the stack, triggering a false positive.

Reviewed by:	andrew, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30126
This commit is contained in:
Mark Johnston 2021-05-07 14:20:53 -04:00
parent cfad8bd24f
commit 831850d8b0

View File

@ -70,7 +70,7 @@ static struct mtx intr_lock;
MTX_SYSINIT(intr_lock, &intr_lock, "stack intr", MTX_DEF);
#endif
static void
static void __nosanitizeaddress
stack_capture(struct thread *td, struct stack *st, register_t fp)
{
x86_frame_t frame;