Test failed since 5.4.0-1071.76~18.04.3-gke (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)
Test failed since 5.4.0-1071. 76~18.04. 3-gke (works ok with 5.4.0-1068-gke)
$ sudo python2 ./test- kernel- security. py -v KernelSecurityT est.test_ 060_nx 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') _.KernelSecurit yTest)
Running test: './test-
test_060_nx (__main_
NX bit is working ... FAIL
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= _.KernelSecurit yTest) ------- ------- ------- ------- ------- ------- ------- ------- ------- kernel- security. py", line 575, in test_060_nx assertShellExit Equals( rie_expected, ["./nx-test-rie", "data"]) google/ autotest/ client/ tmp/ubuntu_ qrt_kernel_ security/ src/qa- regression- testing/ scripts/ testlib. py", line 1203, in assertShellExit Equals assertEqual( expected, rc, msg + result + report) 0x55f37cf22098 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 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 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 55f37d134000 rw-p 00000000 00:00 0 55f37edf7000 rw-p 00000000 00:00 0 [heap] 7f9b631a8000 r-xp 00000000 08:01 2245 /lib/x86_ 64-linux- gnu/libc- 2.27.so 7f9b633a8000 ---p 001e7000 08:01 2245 /lib/x86_ 64-linux- gnu/libc- 2.27.so 7f9b633ac000 r--p 001e7000 08:01 2245 /lib/x86_ 64-linux- gnu/libc- 2.27.so 7f9b633ae000 rw-p 001eb000 08:01 2245 /lib/x86_ 64-linux- gnu/libc- 2.27.so 7f9b633b2000 rw-p 00000000 00:00 0 7f9b633db000 r-xp 00000000 08:01 2240 /lib/x86_ 64-linux- gnu/ld- 2.27.so 7f9b635d1000 rw-p 00000000 00:00 0 7f9b635da000 rwxp 00000000 00:00 0 7f9b635db000 rw-p 00000000 00:00 0 7f9b635dc000 r--p 00029000 08:01 2240 /lib/x86_ 64-linux- gnu/ld- 2.27.so 7f9b635dd000 rw-p 0002a000 08:01 2240 /lib/x86_ 64-linux- gnu/ld- 2.27.so 7f9b635de000 rw-p 00000000 00:00 0 7ffd6cde7000 rwxp 00000000 00:00 0 [stack] 7ffd6cdfd000 r--p 00000000 00:00 0 [vvar] 7ffd6cdfe000 r-xp 00000000 00:00 0 [vdso] 0-ffffffffff601 000 --xp 00000000 00:00 0 [vsyscall]
FAIL: test_060_nx (__main_
NX bit is working
-------
Traceback (most recent call last):
File "./test-
self.
File "/home/
self.
AssertionError: Got exit code -11, expected 0
Command: './nx-test-rie', 'data'
Output:
rodata:
data: 0x55f37d123010
bss: 0x55f37d133040
brk: 0x55f37edd7270
rw: 0x7f9b635da000
rwx: 0x7f9b635d9000
stack: 0x7ffd6cde4b90
Dump of /proc/self/maps:
55f37cf21000-
55f37d122000-
55f37d123000-
55f37d124000-
55f37edd6000-
7f9b62fc1000-
7f9b631a8000-
7f9b633a8000-
7f9b633ac000-
7f9b633ae000-
7f9b633b2000-
7f9b635cf000-
7f9b635d9000-
7f9b635da000-
7f9b635db000-
7f9b635dc000-
7f9b635dd000-
7ffd6cdc6000-
7ffd6cdfa000-
7ffd6cdfd000-
ffffffffff60000
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)