git: 831850d8b087 - main - stack(9): Disable KASAN in stack_capture()

Mark Johnston markj at FreeBSD.org
Fri May 7 18:33:42 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=831850d8b0870c75c21d2e01527af1e55fe2fec8

commit 831850d8b0870c75c21d2e01527af1e55fe2fec8
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-05-07 18:20:53 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-05-07 18:31:08 +0000

    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
---
 sys/x86/x86/stack_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/x86/stack_machdep.c b/sys/x86/x86/stack_machdep.c
index 6e16fc1669ff..0e4bf1bf2930 100644
--- a/sys/x86/x86/stack_machdep.c
+++ b/sys/x86/x86/stack_machdep.c
@@ -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;


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