Files
android_kernel_xiaomi_sm8450/arch/s390/kernel
Sven Schnelle 873e5a763d s390/ptrace: fix setting syscall number
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>
2020-06-16 13:44:04 +02:00
..
2020-05-14 16:44:25 +02:00
2019-12-11 19:53:24 +01:00
2020-05-06 15:19:35 +02:00
2020-01-30 13:07:55 +01:00
2020-01-30 13:07:55 +01:00
2020-03-25 12:39:37 +01:00
2019-10-31 17:20:52 +01:00