[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190217043434.46233-1-cai@lca.pw>
Date: Sat, 16 Feb 2019 23:34:34 -0500
From: Qian Cai <cai@....pw>
To: rostedt@...dmis.org, mingo@...hat.com
Cc: will.deacon@....com, catalin.marinas@....com,
andreyknvl@...gle.com, aryabinin@...tuozzo.com,
linux-arm-kernel@...ts.infradead.org, kasan-dev@...glegroups.com,
linux-kernel@...r.kernel.org, Qian Cai <cai@....pw>
Subject: [PATCH] trace: skip hwasan
Enabling function tracer with CONFIG_KASAN_SW_TAGS=y (hwasan) tracer
causes the whole system frozen on ThunderX2 systems with 256 CPUs,
because there is a burst of too much pointer access, and then KASAN will
dereference each byte of the shadow address for the tag checking which
will kill all the CPUs.
Signed-off-by: Qian Cai <cai@....pw>
---
kernel/trace/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile
index c2b2148bb1d2..fdd547a68385 100644
--- a/kernel/trace/Makefile
+++ b/kernel/trace/Makefile
@@ -28,6 +28,11 @@ ifdef CONFIG_GCOV_PROFILE_FTRACE
GCOV_PROFILE := y
endif
+# Too much pointer access will kill hwasan.
+ifdef CONFIG_KASAN_SW_TAGS
+KASAN_SANITIZE := n
+endif
+
CFLAGS_trace_benchmark.o := -I$(src)
CFLAGS_trace_events_filter.o := -I$(src)
--
2.17.2 (Apple Git-113)
Powered by blists - more mailing lists