summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/purgatory
diff options
context:
space:
mode:
authorChristophe Leroy2019-04-26 18:23:33 +0200
committerMichael Ellerman2019-05-02 17:20:26 +0200
commitf072015c7b742c42aa5649d22f43163cd0eb7024 (patch)
treec4d95b90f992cf837ae87193d6944244de9c4f4a /arch/powerpc/purgatory
parentpowerpc/32: prepare shadow area for KASAN (diff)
downloadkernel-qcow2-linux-f072015c7b742c42aa5649d22f43163cd0eb7024.tar.gz
kernel-qcow2-linux-f072015c7b742c42aa5649d22f43163cd0eb7024.tar.xz
kernel-qcow2-linux-f072015c7b742c42aa5649d22f43163cd0eb7024.zip
powerpc: disable KASAN instrumentation on early/critical files.
All files containing functions run before kasan_early_init() is called must have KASAN instrumentation disabled. For those file, branch profiling also have to be disabled otherwise each if () generates a call to ftrace_likely_update(). Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/purgatory')
-rw-r--r--arch/powerpc/purgatory/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/purgatory/Makefile b/arch/powerpc/purgatory/Makefile
index 4314ba5baf43..7c6d8b14f440 100644
--- a/arch/powerpc/purgatory/Makefile
+++ b/arch/powerpc/purgatory/Makefile
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
+
+KASAN_SANITIZE := n
+
targets += trampoline.o purgatory.ro kexec-purgatory.c
LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined