exec_stack from ubuntu_qrt_apparmor failed with T-4.4

Bug #1836873 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
Fix Released
Undecided
Unassigned
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

This issue cannot be reproduce on Xenial 4.4, probably related to Trusty.

It looks like this is not a regression, at least it can be reproduced with 4.4.0-154-generic #181~14.04.1

Failure could be found across all architectures:

 running exec_stack
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11431 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - file)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11433 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - otherfile)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11435 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - thirdfile)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11436 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - sharedfile)' was expected to 'pass'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11442 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - okcon)' was expected to 'pass'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11448 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - bad label)' was expected to 'fail'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11454 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (2 stacked - bad mode)' was expected to 'fail'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11549 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - file)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11551 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - otherfile)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11553 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - thirdfile)' was expected to 'fail'. Reason for failure expect errno 13 != 139
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11554 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - sharedfile)' was expected to 'pass'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11560 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - okcon)' was expected to 'pass'. Reason for failure 'killed by signal 11'
 /tmp/testlibie9Zaq/source/trusty/apparmor-2.10.95/tests/regression/apparmor/prologue.inc: line 219: 11652 Segmentation fault $testexec "$@" > $outfile 2>&1
 Error: transition failed. Test 'EXEC_STACK (3 stacked - old AA WARN)' was expected to 'pass'. Reason for failure 'killed by signal 11'

Complete test report could be found here:
https://pastebin.ubuntu.com/p/YH5cYVkC5p/

CVE References

Po-Hsu Lin (cypressyew)
tags: added: 4.4 sru-20190701 trusty ubuntu-qrt-apparmor
description: updated
Po-Hsu Lin (cypressyew)
description: updated
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 1836873

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
tags: added: xenial
Po-Hsu Lin (cypressyew)
tags: added: amd64 arm64 i386 ppc64el
removed: xenial
description: updated
Revision history for this message
Steve Beattie (sbeattie) wrote :

This was the result of the fallout from the fix for CVE-2019-11190/LP: #1830984 and has been addressed in qart with commit https://git.launchpad.net/qa-regression-testing/commit/?id=e8651bc9c0ab7293f62bedf620abb9c4187841c0

Thanks!

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in qa-regression-testing:
status: New → Fix Released
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Confirmed passed with 4.4.0-161.189~14.04.1
Thanks

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