test_060_nx in ubuntu_qrt_kernel_security failed on B-gke-5.4 since 5.4.0-1071-gke

Bug #1981069 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
Fix Released
Undecided
Po-Hsu Lin
ubuntu-kernel-tests
New
Undecided
Unassigned
linux-gke (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Test failed since 5.4.0-1071.76~18.04.3-gke AMD64 (works ok with 5.4.0-1068-gke)

$ sudo python2 ./test-kernel-security.py -v KernelSecurityTest.test_060_nx
Running test: './test-kernel-security.py' distro: 'Ubuntu 18.04' kernel: '5.4.0-1071.76~18.04.3 (Ubuntu 5.4.0-1071.76~18.04.3-gke 5.4.181)' arch: 'amd64' uid: 0/0 SUDO_USER: 'google')
test_060_nx (__main__.KernelSecurityTest)
NX bit is working ... FAIL

======================================================================
FAIL: test_060_nx (__main__.KernelSecurityTest)
NX bit is working
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-kernel-security.py", line 575, in test_060_nx
    self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "data"])
  File "/home/google/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1203, in assertShellExitEquals
    self.assertEqual(expected, rc, msg + result + report)
AssertionError: Got exit code -11, expected 0
Command: './nx-test-rie', 'data'
Output:
rodata:0x55f37cf22098
data: 0x55f37d123010
bss: 0x55f37d133040
brk: 0x55f37edd7270
rw: 0x7f9b635da000
rwx: 0x7f9b635d9000
stack: 0x7ffd6cde4b90
Dump of /proc/self/maps:
55f37cf21000-55f37cf23000 r-xp 00000000 08:01 272969 /home/google/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
55f37d122000-55f37d123000 r--p 00001000 08:01 272969 /home/google/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
55f37d123000-55f37d124000 rw-p 00002000 08:01 272969 /home/google/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
55f37d124000-55f37d134000 rw-p 00000000 00:00 0
55f37edd6000-55f37edf7000 rw-p 00000000 00:00 0 [heap]
7f9b62fc1000-7f9b631a8000 r-xp 00000000 08:01 2245 /lib/x86_64-linux-gnu/libc-2.27.so
7f9b631a8000-7f9b633a8000 ---p 001e7000 08:01 2245 /lib/x86_64-linux-gnu/libc-2.27.so
7f9b633a8000-7f9b633ac000 r--p 001e7000 08:01 2245 /lib/x86_64-linux-gnu/libc-2.27.so
7f9b633ac000-7f9b633ae000 rw-p 001eb000 08:01 2245 /lib/x86_64-linux-gnu/libc-2.27.so
7f9b633ae000-7f9b633b2000 rw-p 00000000 00:00 0
7f9b633b2000-7f9b633db000 r-xp 00000000 08:01 2240 /lib/x86_64-linux-gnu/ld-2.27.so
7f9b635cf000-7f9b635d1000 rw-p 00000000 00:00 0
7f9b635d9000-7f9b635da000 rwxp 00000000 00:00 0
7f9b635da000-7f9b635db000 rw-p 00000000 00:00 0
7f9b635db000-7f9b635dc000 r--p 00029000 08:01 2240 /lib/x86_64-linux-gnu/ld-2.27.so
7f9b635dc000-7f9b635dd000 rw-p 0002a000 08:01 2240 /lib/x86_64-linux-gnu/ld-2.27.so
7f9b635dd000-7f9b635de000 rw-p 00000000 00:00 0
7ffd6cdc6000-7ffd6cde7000 rwxp 00000000 00:00 0 [stack]
7ffd6cdfa000-7ffd6cdfd000 r--p 00000000 00:00 0 [vvar]
7ffd6cdfd000-7ffd6cdfe000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0 [vsyscall]
Attempting to execute function at 0x55f37d123010
If this program seg-faults, the region was enforced as non-executable...

----------------------------------------------------------------------
Ran 1 test in 0.880s

FAILED (failures=1)

Notet that this issue does not exist on B-gkeop-5.4

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Similar bug reported for F-gcp-fips - bug 1968841
Maybe this commit need to be expand with -gke?
https://git.launchpad.net/qa-regression-testing/commit/?id=00e4e841efcad9d0a2dee19283ff0aeb1c6f9fe5

tags: added: ubuntu-qrt-kernel-security
tags: added: sru-20220620
Po-Hsu Lin (cypressyew)
description: updated
Po-Hsu Lin (cypressyew)
Changed in qa-regression-testing:
status: New → In Progress
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Steve Beattie (sbeattie) wrote :

Sorry for the delay, I went ahead and merged the fix for this. Thanks!

Changed in qa-regression-testing:
status: In Progress → Fix Released
Changed in linux-gke (Ubuntu):
status: New → Invalid
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.