Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 14:33:09 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0dbb46e5fa69 - stable/13 - stack(9): Disable KASAN in stack_capture()
Message-ID:  <202111011433.1A1EX9nx021571@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=0dbb46e5fa69fe41d871f674b651ba1428345c47

commit 0dbb46e5fa69fe41d871f674b651ba1428345c47
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-05-07 18:20:53 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-11-01 14:06:00 +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
    
    (cherry picked from commit 831850d8b0870c75c21d2e01527af1e55fe2fec8)
---
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111011433.1A1EX9nx021571>