diff options
author | Kees Cook <keescook@chromium.org> | 2020-09-11 19:49:50 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-10-08 13:16:52 -0700 |
commit | a39caac02f2f5819d39f37d7987babe19fcafe21 (patch) | |
tree | 28caf335a12f030a9f87a034798f7521e5156938 /tools/testing/selftests/pidfd | |
parent | bef71f86b64de8b2eb5b2f26e1cbd7735e3551da (diff) | |
download | linux-stable-a39caac02f2f5819d39f37d7987babe19fcafe21.tar.gz linux-stable-a39caac02f2f5819d39f37d7987babe19fcafe21.tar.bz2 linux-stable-a39caac02f2f5819d39f37d7987babe19fcafe21.zip |
selftests/seccomp: powerpc: Set syscall return during ptrace syscall exit
Some archs (like powerpc) only support changing the return code during
syscall exit when ptrace is used. Test entry vs exit phases for which
portions of the syscall number and return values need to be set at which
different phases. For non-powerpc, all changes are made during ptrace
syscall entry, as before. For powerpc, the syscall number is changed at
ptrace syscall entry and the syscall return value is changed on ptrace
syscall exit.
Reported-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Suggested-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Link: https://lore.kernel.org/linux-kselftest/20200911181012.171027-1-cascardo@canonical.com/
Fixes: 58d0a862f573 ("seccomp: add tests for ptrace hole")
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/lkml/20200921075300.7iylzof2w5vrutah@wittgenstein/
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/testing/selftests/pidfd')
0 files changed, 0 insertions, 0 deletions