seccomp_bpf fails Eoan 5.3 in ubuntu_kernel_selftests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Triaged
|
Undecided
|
Unassigned | ||
linux-aws (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Eoan |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Cloud: AWS
Kernel: 5.3.0-1012.13
Test: ubuntu_
The following is observed from the autotest failure.
02/19 21:33:08 DEBUG| utils:0153| [stdout] Estimated seccomp overhead per syscall: 42 ns
02/19 21:33:08 DEBUG| utils:0153| [stdout] ok 1..2 selftests: seccomp: seccomp_benchmark [PASS]
02/19 21:33:08 DEBUG| utils:0153| [stdout] make[1]: Leaving directory '/home/
02/19 21:33:08 DEBUG| utils:0153| [stdout] make: Leaving directory '/home/
02/19 21:33:08 INFO |ubuntu_ker:0179| ========== Summary ===========
02/19 21:33:08 INFO |ubuntu_ker:0056| Sub test case: seccomp_bpf failed.
02/19 21:33:08 ERROR| test:0414| Exception escaping from test:
Traceback (most recent call last):
File "/home/
_call_
File "/home/
return func(*args, **dargs)
File "/home/
postprocess
File "/home/
self.
File "/home/
raise error.TestError
TestError: Test failed for seccomp
When the test is run standalone we can get a little more information.
[==========] Running 75 tests from 1 test cases.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.ALLOW_all
[ OK ] global.ALLOW_all
[ RUN ] global.empty_prog
[ OK ] global.empty_prog
[ RUN ] global.log_all
[ OK ] global.log_all
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.KILL_all
[ OK ] global.KILL_all
[ RUN ] global.KILL_one
[ OK ] global.KILL_one
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.KILL_thread
[ OK ] global.KILL_thread
[ RUN ] global.KILL_process
[ OK ] global.KILL_process
[ RUN ] global.
[ OK ] global.
[ RUN ] global.ERRNO_valid
[ OK ] global.ERRNO_valid
[ RUN ] global.ERRNO_zero
[ OK ] global.ERRNO_zero
[ RUN ] global.ERRNO_capped
[ OK ] global.ERRNO_capped
[ RUN ] global.ERRNO_order
[ OK ] global.ERRNO_order
[ RUN ] TRAP.dfl
[ OK ] TRAP.dfl
[ RUN ] TRAP.ign
[ OK ] TRAP.ign
[ RUN ] TRAP.handler
[ OK ] TRAP.handler
[ RUN ] precedence.allow_ok
[ OK ] precedence.allow_ok
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] TRACE_poke.
[ OK ] TRACE_poke.
[ RUN ] TRACE_poke.
[ OK ] TRACE_poke.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.TSYNC_first
[ OK ] global.TSYNC_first
[ RUN ] TSYNC.siblings_
[ OK ] TSYNC.siblings_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.get_metadata
[ XFAIL! ] get_metadata requires real root
[ OK ] global.get_metadata
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
seccomp_
seccomp_
global.
[ FAIL ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[==========] 74 / 75 tests passed.
[ FAILED ]
It would appear that running this with "sudo" is the problem, upon changing to the root user and re-running
root@ip-
[==========] Running 75 tests from 1 test cases.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.ALLOW_all
[ OK ] global.ALLOW_all
[ RUN ] global.empty_prog
[ OK ] global.empty_prog
[ RUN ] global.log_all
[ OK ] global.log_all
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.KILL_all
[ OK ] global.KILL_all
[ RUN ] global.KILL_one
[ OK ] global.KILL_one
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.KILL_thread
[ OK ] global.KILL_thread
[ RUN ] global.KILL_process
[ OK ] global.KILL_process
[ RUN ] global.
[ OK ] global.
[ RUN ] global.ERRNO_valid
[ OK ] global.ERRNO_valid
[ RUN ] global.ERRNO_zero
[ OK ] global.ERRNO_zero
[ RUN ] global.ERRNO_capped
[ OK ] global.ERRNO_capped
[ RUN ] global.ERRNO_order
[ OK ] global.ERRNO_order
[ RUN ] TRAP.dfl
[ OK ] TRAP.dfl
[ RUN ] TRAP.ign
[ OK ] TRAP.ign
[ RUN ] TRAP.handler
[ OK ] TRAP.handler
[ RUN ] precedence.allow_ok
[ OK ] precedence.allow_ok
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] precedence.
[ OK ] precedence.
[ RUN ] TRACE_poke.
[ OK ] TRACE_poke.
[ RUN ] TRACE_poke.
[ OK ] TRACE_poke.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] TRACE_syscall.
[ OK ] TRACE_syscall.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.TSYNC_first
[ OK ] global.TSYNC_first
[ RUN ] TSYNC.siblings_
[ OK ] TSYNC.siblings_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] TSYNC.two_
[ OK ] TSYNC.two_
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.get_metadata
[ OK ] global.get_metadata
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[ RUN ] global.
[ OK ] global.
[==========] 75 / 75 tests passed.
[ PASSED ]
The test passes. most likely what has to happen here is the test should be changed to run directly as the root user and not sudo.
Changed in ubuntu-kernel-tests: | |
status: | New → Triaged |
tags: | added: aws |
tags: | added: 5.3 sru-20200217 |
tags: | added: ubuntu-bpf |
attached is the core file produced when seccomp_bpf fails