seccomp test from ubuntu_kernel_selftests failed on B-hwe-edge 5.3 (‘PTRACE_EVENTMSG_SYSCALL_ENTRY’ undeclared)

Bug #1845856 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned
Eoan
Incomplete
Undecided
Unassigned

Bug Description

seccomp test failed to build on B-hwe:

    make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
    make --no-builtin-rules ARCH=x86 -C ../../.. headers_install
    make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
    INSTALL ./usr/include
    make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
    make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/seccomp'
    gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
    Makefile:12: recipe for target 'seccomp_bpf' failed
    make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/seccomp'
    Makefile:136: recipe for target 'all' failed
    make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
    stderr:
    In file included from seccomp_bpf.c:51:0:
    seccomp_bpf.c: In function ‘tracer_ptrace’:
    seccomp_bpf.c:1787:20: error: ‘PTRACE_EVENTMSG_SYSCALL_ENTRY’ undeclared (first use in this function); did you mean ‘PTRACE_EVENT_CLONE’?
    EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY
    ^
    ../kselftest_harness.h:608:13: note: in definition of macro ‘__EXPECT’
    __typeof__(_expected) __exp = (_expected); \
    ^~~~~~~~~
    seccomp_bpf.c:1787:2: note: in expansion of macro ‘EXPECT_EQ’
    EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY
    ^~~~~~~~~
    seccomp_bpf.c:1787:20: note: each undeclared identifier is reported only once for each function it appears in
    EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY
    ^
    ../kselftest_harness.h:608:13: note: in definition of macro ‘__EXPECT’
    __typeof__(_expected) __exp = (_expected); \
    ^~~~~~~~~
    seccomp_bpf.c:1787:2: note: in expansion of macro ‘EXPECT_EQ’
    EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY
    ^~~~~~~~~
 seccomp_bpf.c:1788:6: error: ‘PTRACE_EVENTMSG_SYSCALL_EXIT’ undeclared (first use in this function); did you mean ‘PTRACE_EVENTMSG_SYSCALL_ENTRY’?
 : PTRACE_EVENTMSG_SYSCALL_EXIT, msg);
 ^
 ../kselftest_harness.h:608:13: note: in definition of macro ‘__EXPECT’
 __typeof__(_expected) __exp = (_expected); \
 ^~~~~~~~~
 seccomp_bpf.c:1787:2: note: in expansion of macro ‘EXPECT_EQ’
 EXPECT_EQ(entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY
 ^~~~~~~~~
 make[1]: *** [seccomp_bpf] Error 1
 make: *** [all] Error 2

Po-Hsu Lin (cypressyew)
tags: added: amd64 sru-20190902 ubuntu-kernel-selftests
summary: seccomp test from ubuntu_kernel_selftests failed on B-hwe 5.3
+ (‘PTRACE_EVENTMSG_SYSCALL_ENTRY’ undeclared)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1845856

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
summary: - seccomp test from ubuntu_kernel_selftests failed on B-hwe 5.3
+ seccomp test from ubuntu_kernel_selftests failed on B-hwe-edge 5.3
(‘PTRACE_EVENTMSG_SYSCALL_ENTRY’ undeclared)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.