** Changed in: linux (Ubuntu Bionic)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1840932
Title:
[Regression] failed to compile seccomp test from
ubuntu_kernel_selftests
Status in ubuntu-kernel-tests:
New
Status in linux package in Ubuntu:
Incomplete
Status in linux source package in Bionic:
Fix Committed
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_kernel_selftests:
$ sudo make -C tools/testing/selftests TARGETS=seccomp run_tests
make: Entering directory
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests'
make[1]: Entering directory
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests/seccomp'
gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
seccomp_bpf.c: In function ‘syscall_restart’:
seccomp_bpf.c:2685:3: warning: implicit declaration of function ‘XFAIL’; did
you mean ‘EFAULT’? [-Wimplicit-function-declaration]
XFAIL(return, "get_metadata requires real root");
^~~~~
EFAULT
seccomp_bpf.c:2685:9: error: expected expression before ‘return’
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/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests/seccomp'
Makefile:73: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests'
[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-4.15.0-1040-gke 4.15.0-1040.42
ProcVersionSignature: Ubuntu 4.15.0-1040.42-gke 4.15.18
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-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed-gke-4.15
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1840932/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp