Re: [PATCH] s390/entry: add support for syscall stack randomization

Heiko Carstens
2021-04-30T15:43:10Z

On Thu, Apr 29, 2021 at 11:14:51AM +0200, Sven Schnelle wrote:
> 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>
> ---
> arch/s390/Kconfig | 1 +
> arch/s390/include/asm/entry-common.h | 10 ++++++++++
> arch/s390/kernel/syscall.c | 1 +
> arch/s390/kernel/traps.c | 2 ++
> 4 files changed, 14 insertions(+)

Applied, thanks!