test_021_aslr_dapper_libs report OK but marked as failed on K-5.19 openstack PPC instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
Issue found with K-5.19.0-41.42 on Openstack PPC instance.
Unlike bug 1983357, the test output looks OK, but the test was marked as failed.
Test log:
Running test: './test-
test_021_
ASLR of libs ... (default libs native) (default libs native rekey) (unlimited stack libs native) (skipped: unlimited stack aslr broken on ppc64el, skipping) FAIL
======
FAIL: test_021_
ASLR of libs
------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
self.
AssertionError: 1 != 0 : unlimited stack libs native:
Got exit code 0, expected 1
Command: './aslr', 'libs', '--verbose'
Output:
Checking ASLR of libs:
0x0024472a
0x00209994
0x002041d4
ok: ASLR of libs functional
------
Ran 1 test in 0.211s
FAILED (failures=1)
Related branches
- Alex Murray: Approve
- Steve Beattie: Approve
-
Diff: 17 lines (+3/-2)1 file modifiedscripts/test-kernel-security.py (+3/-2)
description: | updated |
A quick look into the code shows this is the problem:
if self.dpkg_arch in ['ppc64el'] and area in ['libs', 'vdso', 'mmap'] and resource. getrlimit( resource. RLIMIT_ STACK) == (resource. RLIM_INFINITY, resource. RLIM_INFINITY) : /github. com/linuxppc/ linux/issues/ 59
self. _skipped( "unlimited stack aslr broken on ppc64el, skipping")
aslr_ expected = 1
# ppc64el still has broken aslr when stack is unlimited
# https:/
# however, the rekey portion of the test *succeeds* so we
# need to adjust the expected value here.
We are expecting this test to fail on ppc64el, but it passed in this case. The mismatch makes the test fail. /github. com/linuxppc/ issues/ issues/ 59 has been closed as well.)
I can see this failing on baremetal as well. Maybe the issue has gone? (The upstream issue https:/