aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/kexec/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-04-11 16:56:31 -0700
committerShuah Khan <skhan@linuxfoundation.org>2019-04-16 17:04:08 -0600
commit9dd3fcb0ab73cb1e00b8562ef027a38521aaff87 (patch)
tree6f1a971fc65ad50b3759c272dce909e834b3aeb4 /tools/testing/selftests/kexec/Makefile
parentselftests: cgroup: fix cleanup path in test_memcg_subtree_control() (diff)
downloadwireguard-linux-9dd3fcb0ab73cb1e00b8562ef027a38521aaff87.tar.xz
wireguard-linux-9dd3fcb0ab73cb1e00b8562ef027a38521aaff87.zip
selftests/seccomp: Handle namespace failures gracefully
When running without USERNS or PIDNS the seccomp test would hang since it was waiting forever for the child to trigger the user notification since it seems the glibc() abort handler makes a call to getpid(), which would trap again. This changes the getpid filter to getppid, and makes sure ASSERTs execute to stop from spawning the listener. Reported-by: Shuah Khan <shuah@kernel.org> Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Cc: stable@vger.kernel.org # > 5.0 Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Tycho Andersen <tycho@tycho.ws> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/kexec/Makefile')
0 files changed, 0 insertions, 0 deletions