]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ptrace: add test cases for dead-locks
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 20 Mar 2020 20:26:19 +0000 (21:26 +0100)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Mar 2020 15:04:01 +0000 (10:04 -0500)
commitb7b56ec38a67b79a556d6f827d524ee5c3c0cf24
tree58502378a13391a77e102d042e771cbecc98ee71
parent56c05dec5b2f3c5dd74114c589f7ad2ce5e3f5d5
selftests/ptrace: add test cases for dead-locks

This adds test cases for ptrace deadlocks.

Additionally fixes a compile problem in get_syscall_info.c,
observed with gcc-4.8.4:

get_syscall_info.c: In function 'get_syscall_info':
get_syscall_info.c:93:3: error: 'for' loop initial declarations are only
                                 allowed in C99 mode
   for (unsigned int i = 0; i < ARRAY_SIZE(args); ++i) {
   ^
get_syscall_info.c:93:3: note: use option -std=c99 or -std=gnu99 to compile
                               your code

Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
tools/testing/selftests/ptrace/Makefile
tools/testing/selftests/ptrace/vmaccess.c [new file with mode: 0644]