test_060_nx in ubuntu_qrt_kernel_security failed on F-gcp-fips

Bug #1968841 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned

Bug Description

Issue found on F-gcp 5.4.0-1071.75+fips1 only, other Focal variant fips kernels do not have this issue.

This issue does not exist in F-gcp 5.4.0-1069.73+fips2 of cycle sru-20220221

  ======================================================================
  FAIL: test_060_nx (__main__.KernelSecurityTest)
  NX bit is working
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 573, in test_060_nx
      self.assertShellExitEquals(rie_expected, ["./nx-test-rie", "data"])
    File "/home/ubuntu/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:0x55f43a3a2008
  data: 0x55f43a3a4010
  bss: 0x55f43a3b4040
  brk: 0x55f43af7e2b0
  rw: 0x7f448aa52000
  rwx: 0x7f448aa25000
  stack: 0x7ffeaf210190
  Dump of /proc/self/maps:
  55f43a3a0000-55f43a3a1000 r--p 00000000 08:01 532206 /home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
  55f43a3a1000-55f43a3a2000 r-xp 00001000 08:01 532206 /home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
  55f43a3a2000-55f43a3a3000 r--p 00002000 08:01 532206 /home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
  55f43a3a3000-55f43a3a4000 r--p 00002000 08:01 532206 /home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
  55f43a3a4000-55f43a3a5000 rw-p 00003000 08:01 532206 /home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/nx/nx-test-rie
  55f43a3a5000-55f43a3b5000 rw-p 00000000 00:00 0
  55f43af7d000-55f43af9e000 rw-p 00000000 00:00 0 [heap]
  7f448a829000-7f448a84b000 r--p 00000000 08:01 3464 /usr/lib/x86_64-linux-gnu/libc-2.31.so
  7f448a84b000-7f448a9c3000 r-xp 00022000 08:01 3464 /usr/lib/x86_64-linux-gnu/libc-2.31.so
  7f448a9c3000-7f448aa11000 r--p 0019a000 08:01 3464 /usr/lib/x86_64-linux-gnu/libc-2.31.so
  7f448aa11000-7f448aa15000 r--p 001e7000 08:01 3464 /usr/lib/x86_64-linux-gnu/libc-2.31.so
  7f448aa15000-7f448aa17000 rw-p 001eb000 08:01 3464 /usr/lib/x86_64-linux-gnu/libc-2.31.so
  7f448aa17000-7f448aa1d000 rw-p 00000000 00:00 0
  7f448aa25000-7f448aa26000 rwxp 00000000 00:00 0
  7f448aa26000-7f448aa27000 r--p 00000000 08:01 3460 /usr/lib/x86_64-linux-gnu/ld-2.31.so
  7f448aa27000-7f448aa4a000 r-xp 00001000 08:01 3460 /usr/lib/x86_64-linux-gnu/ld-2.31.so
  7f448aa4a000-7f448aa52000 r--p 00024000 08:01 3460 /usr/lib/x86_64-linux-gnu/ld-2.31.so
  7f448aa52000-7f448aa53000 rw-p 00000000 00:00 0
  7f448aa53000-7f448aa54000 r--p 0002c000 08:01 3460 /usr/lib/x86_64-linux-gnu/ld-2.31.so
  7f448aa54000-7f448aa55000 rw-p 0002d000 08:01 3460 /usr/lib/x86_64-linux-gnu/ld-2.31.so
  7f448aa55000-7f448aa56000 rw-p 00000000 00:00 0
  7ffeaf1f0000-7ffeaf211000 rwxp 00000000 00:00 0 [stack]
  7ffeaf3cb000-7ffeaf3ce000 r--p 00000000 00:00 0 [vvar]
  7ffeaf3ce000-7ffeaf3cf000 r-xp 00000000 00:00 0 [vdso]
  ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
  Attempting to execute function at 0x55f43a3a4010
  If this program seg-faults, the region was enforced as non-executable...

  ----------------------------------------------------------------------
  Ran 125 tests in 48.158s

Po-Hsu Lin (cypressyew)
tags: added: 5.4 fips focal gcp sru-20220321 ubuntu-qrt-kernel-security
Revision history for this message
Marcelo Cerri (mhcerri) wrote :
Marcelo Cerri (mhcerri)
Changed in ubuntu-kernel-tests:
status: New → Fix Committed
Marcelo Cerri (mhcerri)
information type: Private → Public
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue does not exist anymore with F-gcp-fips - 5.4.0-1076.81+fips1

Changed in ubuntu-kernel-tests:
status: Fix Committed → 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.