aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/timers
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-01-25 10:33:59 -0800
committerShuah Khan <shuah@kernel.org>2019-01-25 15:13:35 -0700
commited5f13261cb65b02c611ae9971677f33581d4286 (patch)
tree5865aa0d86940f670ad69d6cb87e1351787522a2 /tools/testing/selftests/timers
parentselftests: Use lirc.h from kernel tree, not from system (diff)
downloadwireguard-linux-ed5f13261cb65b02c611ae9971677f33581d4286.tar.xz
wireguard-linux-ed5f13261cb65b02c611ae9971677f33581d4286.zip
selftests/seccomp: Enhance per-arch ptrace syscall skip tests
Passing EPERM during syscall skipping was confusing since the test wasn't actually exercising the errno evaluation -- it was just passing a literal "1" (EPERM). Instead, expand the tests to check both direct value returns (positive, 45000 in this case), and errno values (negative, -ESRCH in this case) to check both fake success and fake failure during syscall skipping. Reported-by: Colin Ian King <colin.king@canonical.com> Fixes: a33b2d0359a0 ("selftests/seccomp: Add tests for basic ptrace actions") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'tools/testing/selftests/timers')
0 files changed, 0 insertions, 0 deletions