s390: enable HAVE_ARCH_STACKLEAK
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Mar 2023 09:37:28 +0000 (11:37 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Apr 2023 16:34:56 +0000 (18:34 +0200)
commitb94c0ebb1ec752016a3e41bfb66bb51ea905e533
tree5c94dfb2b30af6c4fb1d551e5adf347a4c21960b
parent22ca1e7738025ae38d07c05bae2af934b1b2c11f
s390: enable HAVE_ARCH_STACKLEAK

Add support for the stackleak feature. Whenever the kernel returns to user
space the kernel stack is filled with a poison value.

Enabling this feature is quite expensive: e.g. after instrumenting the
getpid() system call function to have a 4kb stack the result is an
increased runtime of the system call by a factor of 3.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/Kconfig
arch/s390/kernel/entry.S