s390/vdso64: add sigreturn,rt_sigreturn and restart_syscall
authorSven Schnelle <svens@linux.ibm.com>
Fri, 25 Jun 2021 12:48:28 +0000 (14:48 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 8 Jul 2021 13:37:28 +0000 (15:37 +0200)
commit686341f2548b5a4c4ab1ee22427e046027ae1c9c
tree8b660e0f6bf87f85253d6a2211eaa5d1661139c3
parentd57778feb9878aa6b79c615fd029c2112d40a747
s390/vdso64: add sigreturn,rt_sigreturn and restart_syscall

Add minimalistic trampolines to vdso64 so we can return from signal
without using the stack which requires pgm check handler hacks when
NX is enabled.

restart_syscall will be called from vdso to work around the architectural
limitation that the syscall number might be encoded in the svc instruction,
and therefore can not be changed.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/vdso64/vdso64.lds.S
arch/s390/kernel/vdso64/vdso_user_wrapper.S