systemd/245.4-4ubuntu3.6 ADT test failure with linux-hwe-5.11/5.11.0-20.21~20.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-hwe-5.11 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
linux-hwe-5.15 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
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.
[Original Description]
This is a scripted bug report about ADT failures while running systemd tests for linux-hwe-
Testing failed on:
amd64: https:/
armhf: https:/
ppc64el: https:/
s390x: https:/
In arm64, ppc64el and s390x, 'root-unittests' fails with:
/* test_protect_sysctl */
Assertion 'errno == EFAULT' failed at src/test/
borting.
sysctlseccomp terminated by signal ABRT.
Assertion 'wait_for_
rc/test/
FAIL: test-seccomp (code: 134)
In amd64, 'upstream' also fails on 'TEST-24-
Related branches
- Lukas Märdian: Approve
-
Diff: 508 lines (+444/-10)5 files modifieddebian/changelog (+18/-6)
debian/patches/CVE-2022-3821.patch (+37/-0)
debian/patches/CVE-2022-4415.patch (+386/-0)
debian/patches/series (+2/-0)
debian/tests/boot-and-services (+1/-4)
- Lukas Märdian: Approve
-
Diff: 409 lines (+346/-0)9 files modifieddebian/changelog (+20/-0)
debian/patches/lp1933090-test-seccomp-accept-ENOSYS-from-sysctl-2-too.patch (+25/-0)
debian/patches/lp2002445-netlink-do-not-fail-when-new-interface-name-is-already-us.patch (+50/-0)
debian/patches/lp2002445-netlink-introduce-rtnl_get-delete_link_alternative_names.patch (+102/-0)
debian/patches/lp2002445-sd-netlink-restore-altname-on-error-in-rtnl_set_link_name.patch (+64/-0)
debian/patches/lp2002445-udev-attempt-device-rename-even-if-interface-is-up.patch (+38/-0)
debian/patches/lp2002445-udev-net-allow-new-link-name-as-an-altname-before-renamin.patch (+36/-0)
debian/patches/series (+6/-0)
debian/tests/boot-and-services (+5/-0)
- Nick Rosbrook: Disapprove
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/test/test-seccomp.c (+1/-1)
tags: | added: kernel-adt-failure |
Changed in linux-hwe-5.11 (Ubuntu): | |
status: | New → Won't Fix |
Changed in linux-hwe-5.11 (Ubuntu Focal): | |
status: | New → Won't Fix |
Changed in systemd (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in systemd (Ubuntu): | |
status: | New → Fix Released |
Changed in linux-hwe-5.15 (Ubuntu): | |
status: | New → Invalid |
Changed in linux-hwe-5.15 (Ubuntu Focal): | |
status: | New → Invalid |
description: | updated |
The tests actually ran with systemd/ 245.4-4ubuntu3. 6 and not with systemd/ 245.4-4ubuntu3. 7. We are having some issues with the hwe-5.11 meta packages which caused the tests with 3.7 to be run with the wrong kernel.