** Description changed: + [Impact] + + Test fails to build in selftests/seccomp/seccomp_bpf.c with + 'error: storage size of ‘md’ isn’t known' due to the type + struct seccomp_metadata not being defined for B/5.4 kernels. + + [Test case] + + Test successfully builds and test cases pass both on Bionic/5.4 and on + Focal + + [Fixes] + + Unconditionally define struct seccomp_metadata. + Remove linux/ptrace.h where a definition of seccomp_metadata is already being + defined in Focal. + + [Potential regression] + + There could be future build failures if glibc headers get updated to + include definitions of struct seccomp_metadata or if linux/ptrace.h gets updated + to include needed definitions. + + --------------------------------------------------- Issue found on 5.4.0-48.52~18.04.1 Test build failed with: gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf seccomp_bpf.c: In function ‘get_metadata’: seccomp_bpf.c:3028:26: error: storage size of ‘md’ isn’t known struct seccomp_metadata md; ^~ seccomp_bpf.c:3028:26: warning: unused variable ‘md’ [-Wunused-variable] Makefile:12: recipe for target 'seccomp_bpf' failed
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1896420 Title: seccomp_bpf in seccomp from ubuntu_kernel_selftests failed to build on B-5.4 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1896420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs