]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:41 +0000 (14:47 +0100)
commitfc1527afb084e17c1f043f8b26526b76262227b9
tree4023af06f2ba714fd3ee74502494d690e3e78258
parent9c58c57f650a4508abcaaeb95948eaa93f96d677
selftests/ptrace: add test cases for dead-locks

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit 2de4e82318c7f9d34f4b08599a612cd4cd10bf0b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
tools/testing/selftests/ptrace/Makefile
tools/testing/selftests/ptrace/vmaccess.c [new file with mode: 0644]