Files
linux/arch/s390/kernel
Sven Schnelle 7c17909a88 s390/ptrace: fix setting syscall number
[ Upstream commit 873e5a763d ]

When strace wants to update the syscall number, it sets GPR2
to the desired number and updates the GPR via PTRACE_SETREGSET.
It doesn't update regs->int_code which would cause the old syscall
executed on syscall restart. As we cannot change the ptrace ABI and
don't have a field for the interruption code, check whether the tracee
is in a syscall and the last instruction was svc. In that case assume
that the tracer wants to update the syscall number and copy the GPR2
value to regs->int_code.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:37:04 -04:00
..
2019-07-23 10:45:53 +02:00
2019-05-02 13:54:11 +02:00
2019-04-29 10:47:10 +02:00
2019-05-02 13:54:11 +02:00
2018-02-27 08:05:23 +01:00
2019-06-07 10:09:37 +02:00
2018-07-20 00:02:41 +02:00