OSDN Git Service

s390: move restart of execve() syscall
authorSven Schnelle <svens@linux.ibm.com>
Wed, 30 Jun 2021 11:50:55 +0000 (13:50 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 8 Jul 2021 20:12:17 +0000 (22:12 +0200)
commite3c7a8d7f44f4b36eb299563526ef8c5cb8011b0
tree52cfa082f382217276692a600044625c4c93768a
parentfbf50f47ea99d07aec59859027352d4837e84ce1
s390: move restart of execve() syscall

On s390, execve might have to be restarted for PGSTE binaries
like kvm. In the past this was done via the PIF_SYSCALL_RESTART
bit. However, with the recent changes, syscalls are now restarted
differently. Now that execve() is the only call that might get
restarted via PIF_SYSCALL_RESTART, move the loop to do_syscall().
This also has the advantage that the restart is no longer visible
to userspace.

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/include/asm/ptrace.h
arch/s390/kernel/syscall.c