aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/Kconfig
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2021-04-29 11:14:51 +0200
committerHeiko Carstens <hca@linux.ibm.com>2021-04-30 17:20:39 +0200
commitbae1cd368c45d1127e054e90305d585dbc8b3b46 (patch)
tree07224dd0189f8d3d63f1582a3ef7850250d884d0 /arch/s390/Kconfig
parents390/configs: change CONFIG_VIRTIO_CONSOLE to "m" (diff)
downloadlinux-dev-bae1cd368c45d1127e054e90305d585dbc8b3b46.tar.xz
linux-dev-bae1cd368c45d1127e054e90305d585dbc8b3b46.zip
s390/entry: add support for syscall stack randomization
This adds support for adding a random offset to the stack while handling syscalls. The patch uses get_tod_clock_fast() as this is considered good enough and has much less performance penalty compared to using get_random_int(). The patch also adds randomization in pgm_check_handler() as the sigreturn/rt_sigreturn system calls might be called from there. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Link: https://lore.kernel.org/r/20210429091451.1062594-1-svens@linux.ibm.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/Kconfig')
-rw-r--r--arch/s390/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index c1ff874e6c2e..1900428ce557 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -137,6 +137,7 @@ config S390
select HAVE_ARCH_JUMP_LABEL_RELATIVE
select HAVE_ARCH_KASAN
select HAVE_ARCH_KASAN_VMALLOC
+ select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
select HAVE_ARCH_SECCOMP_FILTER
select HAVE_ARCH_SOFT_DIRTY
select HAVE_ARCH_TRACEHOOK