summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/seccomp
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-03-09 18:44:50 +0300
committerVasily Gorbik <gor@linux.ibm.com>2020-06-16 14:44:04 +0300
commit873e5a763d604c32988c4a78913a8dab3862d2f9 (patch)
treeb9f89c12afdd3f5268c507b9424fadb922c9f9c5 /tools/testing/selftests/seccomp
parent00332c16b1604242a56289ff2b26e283dbad0812 (diff)
downloadlinux-873e5a763d604c32988c4a78913a8dab3862d2f9.tar.xz
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>
Diffstat (limited to 'tools/testing/selftests/seccomp')
0 files changed, 0 insertions, 0 deletions