summaryrefslogtreecommitdiffstats
path: root/arch/s390/Kconfig
diff options
context:
space:
mode:
authorVasily Gorbik2017-11-19 11:39:39 +0100
committerMartin Schwidefsky2018-10-09 11:21:28 +0200
commit5e785963298b7923e28817d20868882fbefc863c (patch)
tree3f59908d6657df6b24bd4f7e3fa3c98ebb385214 /arch/s390/Kconfig
parents390/dumpstack: disable __dump_trace kasan instrumentation (diff)
downloadkernel-qcow2-linux-5e785963298b7923e28817d20868882fbefc863c.tar.gz
kernel-qcow2-linux-5e785963298b7923e28817d20868882fbefc863c.tar.xz
kernel-qcow2-linux-5e785963298b7923e28817d20868882fbefc863c.zip
s390/kasan: enable stack and global variables access checks
By defining KASAN_SHADOW_OFFSET in Kconfig stack and global variables memory access check instrumentation is enabled. gcc version 4.9.2 or newer is also required. 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/Kconfig')
-rw-r--r--arch/s390/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 95fff775ac7c..24586257c5cd 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -56,6 +56,11 @@ config PCI_QUIRKS
config ARCH_SUPPORTS_UPROBES
def_bool y
+config KASAN_SHADOW_OFFSET
+ hex
+ depends on KASAN
+ default 0x30000000000
+
config S390
def_bool y
select ARCH_BINFMT_ELF_STATE