test_protect_syscall fails on focal-5.15 backports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Medium
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned |
Bug Description
[SRU Impact]
Sysctl was removed from 5.5 kernels. In src/test/
sysctl is called with the expectation the error result is EFAULT and not ENOSYS.
This affects autotests for all focal-5.15 linux kernels (hwe, azure, gcp, oem, gke, oracle).
[Fix]
Assertion checks if either EFAULT or ENOSYS is returned. This way it will work for focal-5.4 kernels and focal-5.15 kernels.
[Test to reproduce the issue]
1. Create a vm and install one of the focal-5.15 kernels (i.e 5.15.0-
2. Run the autotests for upstream and/or root-unittests:
autopkgtest --test-
[Test to verify the fix]
1. Same as above
2. Apply the fix in your local repo and run the tests using your local repo
autopkgtest --test-
[Where problems could occur]
This is not gonna affect end users since it is a change in the test only.
It may impact autotests, but it's a very low probability.
Related branches
- Nick Rosbrook: Disapprove
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/test/test-seccomp.c (+1/-1)
Changed in systemd (Ubuntu): | |
importance: | Undecided → Medium |
Thanks! I am going to copy this over to the original bug report, and mark this as a duplicate.