summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2017-11-17 13:10:33 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-09 11:21:17 +0200
commit0a9b40911baffac6fc9cc2d88e893585870a97f7 (patch)
treee25beace7ad8f658edc883aec8444b6de128420f /arch/s390/kernel
parents390/kasan: avoid vdso instrumentation (diff)
downloadlinux-0a9b40911baffac6fc9cc2d88e893585870a97f7.tar.xz
linux-0a9b40911baffac6fc9cc2d88e893585870a97f7.zip
s390/kasan: avoid instrumentation of early C code
Instrumented C code cannot run without the kasan shadow area. Exempt source code files from kasan which are running before / used during kasan initialization. Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile
index 7ad6fa60a1f2..1f9c98f7d9e2 100644
--- a/arch/s390/kernel/Makefile
+++ b/arch/s390/kernel/Makefile
@@ -23,6 +23,8 @@ KCOV_INSTRUMENT_early_nobss.o := n
UBSAN_SANITIZE_early.o := n
UBSAN_SANITIZE_early_nobss.o := n
+KASAN_SANITIZE_early_nobss.o := n
+
#
# Passing null pointers is ok for smp code, since we access the lowcore here.
#