Comment 0 for bug 1931393

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : test_030_mmap_min in ubuntu_qrt_kernel_security failed on 5.11 ARM64k

Issue found on 5.11.0-20.21-generic-64k and 5.8.0-56.63-generic-64k with arm64 instances on aws cloud (instance a1.2xlarge, a1.medium, c6g.8xlarge)

  ======================================================================
  FAIL: test_030_mmap_min (__main__.KernelSecurityTest)
  Low memory allocation respects mmap_min_addr
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 289, in test_030_mmap_min
      self.assertShellExitEquals(expected, ['sudo', '-u', os.environ['SUDO_USER'], "./low-mmap", '%d' % (wanted)])
    File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1166, in assertShellExitEquals
      self.assertEqual(expected, rc, msg + result + report)
  AssertionError: Got exit code 1, expected 0
  Command: 'sudo', '-u', 'ubuntu', './low-mmap', '32768'
  Output:
  Testing lower 32768 bytes in 65536 byte chunks: pass (could not allocate memory)
  Testing 65536 byte chunk above 32767:
   Unexpectedly unable to allocate 65536 bytes at 0x00000000
  FAIL (cannot allocate memory)

This is not a regression as it can be found in 5.11.0-14.15-generic-64k and 5.8.0-52.59-generic-64k as well.