Thread (5 messages) 5 messages, 2 authors, 2018-10-10
STALE2789d

[PATCH] kasan: avoid out-of-bounds in unwind_frame

From: Chunhui Li <hidden>
Date: 2018-10-09 10:11:03
Also in: linux-arm-kernel
Subsystem: arm64 port (aarch64 architecture), the rest · Maintainers: Catalin Marinas, Will Deacon, Linus Torvalds

From: "chunhui.li" <chunhui.li-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>

   kasan detect unwind_frame out-of-bounds error when one task
dump another, log as below
BUG: KASAN: out-of-bounds in unwind_frame+0x140/0x20c Read of
size 8 at addr ffffffea1e2378e0 by task AnrMonitorThrea/1111
avoid kasan out-of-bounds error by disable kasan for stacktrace.c

Signed-off-by: chunhui.li <chunhui.li-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
---
 arch/arm64/kernel/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index 95ac737..606d0e2 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -57,6 +57,8 @@ arm64-obj-$(CONFIG_CRASH_DUMP)		+= crash_dump.o
 arm64-obj-$(CONFIG_ARM_SDE_INTERFACE)	+= sdei.o
 arm64-obj-$(CONFIG_ARM64_SSBD)		+= ssbd.o
 
+KASAN_SANITIZE_stacktrace.o := n
+
 obj-y					+= $(arm64-obj-y) vdso/ probes/
 obj-m					+= $(arm64-obj-m)
 head-y					:= head.o
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help