Regression tests can not detect binfmt_elf mmpa semantic change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Undecided
|
John Johansen | ||
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Low
|
Tyler Hicks | ||
Yakkety |
Won't Fix
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
John Johansen | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
John Johansen |
Bug Description
== apparmor SRU ==
[Impact]
* The exec_stack.sh regression test fails due to a behavior change in 4.8
kernels from this patch:
commit 9f834ec18defc36
Author: Linus Torvalds <email address hidden>
Date: Mon Aug 22 16:41:46 2016 -0700
binfmt_elf: switch to new creds when switching to new mm
* The regression tests were fixed for this kernel change but they were fixed
in a way that always assumed that kernel change is present. They should have
been adjusted so that they act differently according to whether or not the
kernel change is present (it is a change that could end up being backported
through the stable trees).
[Test Case]
$ apt-get source apparmor # make sure this fetches the new apparmor source
$ sudo apt-get install libapparmor-dev
$ cd tests/regressio
$ make USE_SYSTEM=1
$ sudo bash exec_stack.sh
The previous command should result in no output and return value of 0.
[Regression Potential]
* This is an extremely low risk change since it only touches regression
testing code that is not user-facing.
[Other]
* Fixed in upstream lp:apparmor tree:
https:/
== Original description ==
The regression tests are currently hard coded to the semantics of mmap in binfmt_elf
With the recent upstream commit 9f834ec18defc36
Changed in linux (Ubuntu): | |
milestone: | none → ubuntu-16.10 |
Changed in linux (Ubuntu Yakkety): | |
assignee: | nobody → John Johansen (jjohansen) |
Changed in apparmor: | |
assignee: | nobody → John Johansen (jjohansen) |
Changed in apparmor: | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Yakkety): | |
status: | Incomplete → In Progress |
description: | updated |
Changed in apparmor (Ubuntu): | |
status: | New → Fix Released |
Changed in apparmor: | |
status: | Fix Committed → Fix Released |
Changed in linux (Ubuntu Xenial): | |
status: | New → Invalid |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1630069
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.