** Summary changed:

- ubuntu_qrt_kernel_security test_060_nx failed on arm64 
+ ubuntu_qrt_kernel_security test_060_nx failed on Trusty ARM64

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

** Tags added: trusty

** Description changed:

- For this test, it looks like it should be skipped (3.13 kernel)
- 
- test_060_nx (__main__.KernelSecurityTest)
- NX bit is working ... (skipped: ARM64 older than 4.4 has READ_IMPLIES_EXEC 
personality set) FAIL
- 
- But this test return FAIL instead.
- 
- Digging down into the test case itself, those nx-test test cases (except
- mmap-exec) will fail with return code 139
- 
- self.assertShellExitEquals(expected, ["./nx-test", "data"])
- self.assertShellExitEquals(expected, ["./nx-test", "bss"])
- self.assertShellExitEquals(stack_expected, ["./nx-test", "stack"])
- self.assertShellExitEquals(expected, ["./nx-test", "brk"])
- self.assertShellExitEquals(expected, ["./nx-test", "mmap"])
- 
- Also, those nx-test-rie tests will return 0 even if it's saying that
- this is "unexpected"
- 
- self.assertShellExitEquals(0, ["./nx-test-rie", "mmap-exec"])
- self.assertShellExitEquals(0, ["./nx-test-rie", "stack"])
- self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "data"])
- self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "bss"])
- self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "brk"])
- self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "mmap"])
- 
- $ sudo ./nx-test-rie brk
- rodata:0x4010c0
- data:  0x4120a8
- bss:   0x4220c8
- brk:   0x1542b020
- rw:    0x7fa72a5000
- rwx:   0x7fa72a4000
- stack: 0x7ff0364f78
- Dump of /proc/self/maps:
- 00400000-00402000 r-xp 00000000 08:02 10228068                           
/home/ubuntu/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
- 00411000-00412000 r-xp 00001000 08:02 10228068                           
/home/ubuntu/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
- 00412000-00413000 rwxp 00002000 08:02 10228068                           
/home/ubuntu/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
- 00413000-00423000 rwxp 00000000 00:00 0 
- 1542a000-1544c000 rwxp 00000000 00:00 0                                  
[heap]
- 7fa7112000-7fa7132000 rwxp 00000000 00:00 0 
- 7fa7132000-7fa7265000 r-xp 00000000 08:02 262398                         
/lib/aarch64-linux-gnu/libc-2.19.so
- 7fa7265000-7fa7275000 ---p 00133000 08:02 262398                         
/lib/aarch64-linux-gnu/libc-2.19.so
- 7fa7275000-7fa7279000 r-xp 00133000 08:02 262398                         
/lib/aarch64-linux-gnu/libc-2.19.so
- 7fa7279000-7fa727b000 rwxp 00137000 08:02 262398                         
/lib/aarch64-linux-gnu/libc-2.19.so
- 7fa727b000-7fa727f000 rwxp 00000000 00:00 0 
- 7fa727f000-7fa729b000 r-xp 00000000 08:02 262387                         
/lib/aarch64-linux-gnu/ld-2.19.so
- 7fa729e000-7fa72a0000 rwxp 00000000 00:00 0 
- 7fa72a4000-7fa72a8000 rwxp 00000000 00:00 0 
- 7fa72a8000-7fa72aa000 r-xp 00000000 00:00 0                              
[vdso]
- 7fa72aa000-7fa72ab000 r-xp 0001b000 08:02 262387                         
/lib/aarch64-linux-gnu/ld-2.19.so
- 7fa72ab000-7fa72ad000 rwxp 0001c000 08:02 262387                         
/lib/aarch64-linux-gnu/ld-2.19.so
- 7ff0345000-7ff0366000 rwxp 00000000 00:00 0                              
[stack]
- Attempting to execute function at 0x1542a010
- If this program seg-faults, the region was enforced as non-executable...
- Unexpected: returned from function that was marked non-executable.
- NX segment markings are not being enforced.
+  FAIL: test_060_nx (__main__.KernelSecurityTest)
+  NX bit is working
+  ----------------------------------------------------------------------
+  Traceback (most recent call last):
+    File "./test-kernel-security.py", line 460, in test_060_nx
+      self.assertShellExitEquals(expected, ["./nx-test", "data"])
+    File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py",
 line 1134, in assertShellExitEquals
+      self.assertEqual(expected, rc, msg + result + report)
+  AssertionError: Got exit code -11, expected 0
+  Command: './nx-test', 'data'
+  Output:
+  rodata:0x4010c0
+  data:  0x4120a8
+  bss:   0x4220c8
+  brk:   0x20de1010
+  rw:    0x7f833a1000
+  rwx:   0x7f833a0000
+  stack: 0x7fdd19bfd8
+  Dump of /proc/self/maps:
+  00400000-00402000 r-xp 00000000 08:02 10096524                           
/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test
+  00411000-00412000 r--p 00001000 08:02 10096524                           
/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test
+  00412000-00413000 rw-p 00002000 08:02 10096524                           
/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test
+  00413000-00423000 rw-p 00000000 00:00 0 
+  20de1000-20e03000 rw-p 00000000 00:00 0                                  
[heap]
+  7f8320c000-7f8322c000 rw-p 00000000 00:00 0 
+  7f8322c000-7f8335f000 r-xp 00000000 08:02 4718846                        
/lib/aarch64-linux-gnu/libc-2.19.so
+  7f8335f000-7f8336f000 ---p 00133000 08:02 4718846                        
/lib/aarch64-linux-gnu/libc-2.19.so
+  7f8336f000-7f83373000 r--p 00133000 08:02 4718846                        
/lib/aarch64-linux-gnu/libc-2.19.so
+  7f83373000-7f83375000 rw-p 00137000 08:02 4718846                        
/lib/aarch64-linux-gnu/libc-2.19.so
+  7f83375000-7f83379000 rw-p 00000000 00:00 0 
+  7f83379000-7f83395000 r-xp 00000000 08:02 4718835                        
/lib/aarch64-linux-gnu/ld-2.19.so
+  7f83399000-7f8339b000 rw-p 00000000 00:00 0 
+  7f833a0000-7f833a1000 rwxp 00000000 00:00 0 
+  7f833a1000-7f833a2000 rw-p 00000000 00:00 0 
+  7f833a2000-7f833a4000 r-xp 00000000 00:00 0                              
[vdso]
+  7f833a4000-7f833a5000 r--p 0001b000 08:02 4718835                        
/lib/aarch64-linux-gnu/ld-2.19.so
+  7f833a5000-7f833a7000 rw-p 0001c000 08:02 4718835                        
/lib/aarch64-linux-gnu/ld-2.19.so
+  7fdd17c000-7fdd19d000 rw-p 00000000 00:00 0                              
[stack]
+  Attempting to execute function at 0x4120a8
+  If this program seg-faults, the region was enforced as non-executable...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1712038

Title:
  ubuntu_qrt_kernel_security test_060_nx failed on Trusty ARM64

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/1712038/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to