qa-regression-testing test_ulimit_stack_small fails on ppc64el/i386

Bug #1814295 reported by Seth Forshee
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QA Regression Testing
Confirmed
Undecided
Unassigned
ubuntu-kernel-tests
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-disco/disco/ppc64el/l/linux/20190201_153123_8340c@/log.gz

  ======================================================================
  FAIL: test_ulimit_stack_small (__main__.KernelNonSecurityTest)
  Ensure small stack limits are enforced
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 2847, in test_ulimit_stack_small
      self.assertShellExitIn(expected, self._unpriv_cmd(["sh", "-c", "ulimit -s 1 && /bin/true"]))
    File "/tmp/autopkgtest.aOkL2y/build.mxm/src/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1151, 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:

  ----------------------------------------------------------------------

CVE References

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1814295

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Seth Forshee (sforshee)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: qa-regression-testing test_ulimit_stack_small fails on ppc64el

Found on T-LTS-X i386 as well.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW this test has been disabled for PPC

       if self.dpkg_arch == 'ppc64el':
            '''https://bugs.launchpad.net/bugs/1814295'''
            return self._skipped('WARN: intermittent failures on ppc64el (LP: #1814295)')

summary: - qa-regression-testing test_ulimit_stack_small fails on ppc64el
+ qa-regression-testing test_ulimit_stack_small fails on ppc64el/i386
Revision history for this message
Steve Beattie (sbeattie) wrote :

Hrm, I am unable to reproduce this on i386 in either trusty with lts-xenial or in xenial directly, despite attempting to reproduce the test failure repeatedly.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hello,
It looks like this is a bit flaky for i386,
I can see this failure with 4.18.0-19.20~18.04.1-generic on i386 node "onza", fail rate 2 out of 3 attempts.

======================================================================
FAIL: test_ulimit_stack_small (__main__.KernelNonSecurityTest)
Ensure small stack limits are enforced
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-kernel-security.py", line 2896, 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 1151, 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:

Po-Hsu Lin (cypressyew)
tags: added: i386 ppc64el
tags: added: ubuntu-qrt-kernel-security
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on 5.0 B-hwe i386 with node pepe.

Changed in qa-regression-testing:
status: New → Confirmed
tags: added: sru-20190902
tags: added: 5.0
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
status: New → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue found on 4.4.0-167.196~14.04.1 with node onza.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue found on 4.4.0-178.208~14.04.1 with node onza.

tags: added: sru-20200406
tags: added: 4.4
tags: added: trusty
Po-Hsu Lin (cypressyew)
tags: added: sru-20200427
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue found on Precise 3.2 i386 3.2.0-145.192

tags: added: 3.2 precise sru-20200518
Po-Hsu Lin (cypressyew)
tags: added: sru-20200831
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Still see this sometimes pop up, currently found on Bionic/linux 4.15.0-144.148 i386. found via ADT

  Kernel correctly calls access_ok on compat_alloc_userspace (CVE-2010-3081) ... ok

  ======================================================================
  FAIL: test_ulimit_stack_small (__main__.KernelNonSecurityTest)
  Ensure small stack limits are enforced
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 3002, in test_ulimit_stack_small
      self.assertShellExitIn(expected, self._unpriv_cmd(["sh", "-c", "ulimit -s 1 && /bin/true"]))
    File "/tmp/autopkgtest.Q9nQbe/build.SKg/src/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1181, 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:

  ----------------------------------------------------------------------
  Ran 125 tests in 51.673s

  FAILED (failures=1)
15:17:45 INFO | END ERROR ubuntu_qrt_kernel_security.test-kernel-security.py ubuntu_qrt_kernel_security.test-kernel-security.py timestamp=1621610265 localtime=May 21 15:17:45

tags: added: 4.15 bionic sru-20210510
tags: added: sru-20211108
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.