summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/Makefile
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2019-11-14 19:03:03 +0100
committerPaul E. McKenney <paulmck@kernel.org>2019-11-16 07:23:16 -0800
commit40d04110f87940b6a03bf0aa19cd29e84f465f20 (patch)
tree85a7f42366dc040bad8e13608ce21c01d0a2222f /arch/x86/kernel/cpu/Makefile
parente75a6795ed132f26f69d08dea958630d5993056d (diff)
downloadlinux-stable-40d04110f87940b6a03bf0aa19cd29e84f465f20.tar.gz
linux-stable-40d04110f87940b6a03bf0aa19cd29e84f465f20.tar.bz2
linux-stable-40d04110f87940b6a03bf0aa19cd29e84f465f20.zip
x86, kcsan: Enable KCSAN for x86
This patch enables KCSAN for x86, with updates to build rules to not use KCSAN for several incompatible compilation units. Signed-off-by: Marco Elver <elver@google.com> Acked-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/Makefile')
-rw-r--r--arch/x86/kernel/cpu/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
index d7a1e5a9331c..1f1b0edc0187 100644
--- a/arch/x86/kernel/cpu/Makefile
+++ b/arch/x86/kernel/cpu/Makefile
@@ -13,6 +13,9 @@ endif
KCOV_INSTRUMENT_common.o := n
KCOV_INSTRUMENT_perf_event.o := n
+# As above, instrumenting secondary CPU boot code causes boot hangs.
+KCSAN_SANITIZE_common.o := n
+
# Make sure load_percpu_segment has no stackprotector
nostackp := $(call cc-option, -fno-stack-protector)
CFLAGS_common.o := $(nostackp)