]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4acd197b045415d988923497ff465b8d071223fb
tree8b660e0f6bf87f85253d6a2211eaa5d1661139c3
parentc548a76b78b05ba106b03712f7eb03ba77bbae1a
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