[Regression] failed to compile seccomp test from ubuntu_kernel_selftests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Sean Feole | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Commit c33a23ff8ffc (selftests: skip seccomp get_metadata test if not real root) in Bionic tree
Is causing compilation error for the seccomp test in ubuntu_
$ sudo make -C tools/testing/
make: Entering directory '/home/
make[1]: Entering directory '/home/
gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
seccomp_bpf.c: In function ‘syscall_restart’:
seccomp_
XFAIL(return, "get_metadata requires real root");
^~~~~
EFAULT
seccomp_
XFAIL(return, "get_metadata requires real root");
^~~~~~
Makefile:12: recipe for target 'seccomp_bpf' failed
make[1]: *** [seccomp_bpf] Error 1
make[1]: Leaving directory '/home/
Makefile:73: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/
[Fix]
Commit upstream 3aa415dd2128 (selftests: skip seccomp get_metadata test if not real root) depends on d057dc4e35e1 (seccomp: add a selftest for get_metadata), but the latter has been reverted on bionic as part of bug #1837664. The get_metadata testcase doesn't exist anymore, the backport of the patch ended up changing syscall_restart instead.
So the best solution is to revert c33a23ff8ffc, which is not needed and is causing trouble.
[Test Case]
Run the seccomp kernel selftests.
[Regression potential]
No regression potential. The commit introduced a regression by being wrongly backported, so reverting it will fix the issue and has no risk.
-------
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-1040-gke x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Wed Aug 21 14:33:19 2019
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)
CVE References
Changed in linux (Ubuntu Bionic): | |
status: | Incomplete → Confirmed |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
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 1840932
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.