The patch titled Subject: selftests/seccomp/seccomp_bpf: update for PTRACE_GET_SYSCALL_INFO has been removed from the -mm tree. Its filename was ptrace-add-ptrace_get_syscall_info-request-fix.patch This patch was dropped because it was folded into ptrace-add-ptrace_get_syscall_info-request.patch ------------------------------------------------------ From: "Dmitry V. Levin" <ldv@xxxxxxxxxxxx> Subject: selftests/seccomp/seccomp_bpf: update for PTRACE_GET_SYSCALL_INFO The syscall entry/exit is now exposed via PTRACE_GETEVENTMSG, update the test accordingly. Link: http://lkml.kernel.org/r/20190708182904.GA12332@xxxxxxxxxxxx Signed-off-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx> Reported-by: kernel test robot <rong.a.chen@xxxxxxxxx> Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx> Cc: Elvira Khabirova <lineprinter@xxxxxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Eugene Syromyatnikov <esyr@xxxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/seccomp/seccomp_bpf.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) --- a/tools/testing/selftests/seccomp/seccomp_bpf.c~ptrace-add-ptrace_get_syscall_info-request-fix +++ a/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -1775,13 +1775,18 @@ void tracer_ptrace(struct __test_metadat unsigned long msg; static bool entry; - /* Make sure we got an empty message. */ + /* + * The traditional way to tell PTRACE_SYSCALL entry/exit + * is by counting. + */ + entry = !entry; + + /* Make sure we got an appropriate message. */ ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg); EXPECT_EQ(0, ret); - EXPECT_EQ(0, msg); + EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY + : PTRACE_EVENTMSG_SYSCALL_EXIT, msg); - /* The only way to tell PTRACE_SYSCALL entry/exit is by counting. */ - entry = !entry; if (!entry) return; _ Patches currently in -mm which might be from ldv@xxxxxxxxxxxx are nds32-fix-asm-syscallh.patch hexagon-define-syscall_get_error-and-syscall_get_return_value.patch mips-define-syscall_get_error.patch parisc-define-syscall_get_error.patch powerpc-define-syscall_get_error.patch ptrace-add-ptrace_get_syscall_info-request.patch selftests-ptrace-add-a-test-case-for-ptrace_get_syscall_info.patch