Comment 0 for bug 1949645

Revision history for this message
Kelsey Steele (kelsey-steele) wrote : test-kernel-security.py from ubuntu_qrt_kernel_security fails on impish (test_ulimit_stack_small / test_030_mmap_min)

Finding two failures in test-kernel-security.py from ubuntu_qrt_kernel_security fails on impish (test_ulimit_stack_small / test_030_mmap_min). These are found on previous kernels from Impish, so not considered a regression.

hosts: generic-64k dazzle and helo-kernel

test_ulimit_stack_small (__main__.KernelNonSecurityTest)
Ensure small stack limits are enforced ... FAIL

.....

test_030_mmap_min (__main__.KernelSecurityTest)
10/22 01:49:47 ERROR| utils:0153| [stderr] Low memory allocation respects mmap_min_addr ... (arm kernel with 64K pages configured (LP:#1931393) (65536) FAIL

.....

======================================================================
FAIL: test_ulimit_stack_small (__main__.KernelNonSecurityTest)
Ensure small stack limits are enforced
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-kernel-security.py", line 3014, in test_ulimit_stack_small
    self.assertShellExitIn(expected, self._unpriv_cmd(["sh", "-c", "ulimit -s 1 && /bin/true"]))
  File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1218, in assertShellExitIn
    self.assertIn(rc, expected, msg + result + report)
AssertionError: Got exit code 0, expected one of 139
Command: 'sudo', '-u', 'ubuntu', 'sh', '-c', 'ulimit -s 1 && /bin/true'
Output:

======================================================================
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 285, in test_030_mmap_min
    mmap_limit = self._test_sysctl_value('vm/mmap_min_addr', wanted, "is wine or qemu-kvm-extras-static installed?")
  File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1269, in _test_sysctl_value
    self.assertEqual(value, expected, report)
AssertionError: /proc/sys/vm/mmap_min_addr is not 65536: 32768 (is wine or qemu-kvm-extras-static installed?)

----------------------------------------------------------------------
Ran 125 tests in 26.120s

FAILED (failures=2)