seccomp_bpf in seccomp from ubuntu_kernel_selftests failed to build on B-5.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Luke Nowakowski-Krijger |
Bug Description
[Impact]
Test fails to build in selftests/
'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_
struct seccomp_metadata md;
^~
seccomp_
Makefile:12: recipe for target 'seccomp_bpf' failed
tags: | added: 5.4 bionic ubuntu-kernel-selftests |
tags: | added: kqa-blocker sru-20200831 |
tags: | added: gcp |
tags: | added: hwe sru-20210315 |
tags: | added: sru-20210412 |
tags: | added: hwe-5.4 |
tags: | added: hinted |
Changed in linux (Ubuntu): | |
status: | New → Invalid |
Changed in linux (Ubuntu Focal): | |
status: | New → Confirmed |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | Confirmed → In Progress |
assignee: | nobody → Luke Nowakowski-Krijger (lukenow) |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
This issue does not exist in Focal 5.4.0-48.52, just 5.4 on Bionic.