test_095_kernel_symbols_missing_proc_self_stack failed on P-LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Kleber Sacilotto de Souza | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza |
Bug Description
[Impact]
The testcase test_095_
Kernel: 3.13.0-
The test failed with:
AssertionError: cat: /proc/self/stack: Permission denied
FAIL: test_095_
kernel addresses in /proc/self/stack are zeroed out
-------
Traceback (most recent call last):
File "./test-
self._check_
File "./test-
test_function(
File "./test-
expected, retry=True)
File "./test-
self.assertEqua
AssertionError: cat: /proc/self/stack: Permission denied
The testcase checks the file permission before trying to read it, and for kernel 3.13 the permissions became inconsistent with what the user can actually do:
$ cat /proc/self/stack
cat: /proc/self/stack: Permission denied
$ ls -l /proc/self/stack
-r--r--r-- 1 ubuntu ubuntu 0 Jan 24 04:06 /proc/self/stack
[Test Case]
Run 'cat' and 'ls' on the file as stated above, or run the ubuntu_
[Fix]
Upstream commit 35a35046e4f9 ("procfs: make /proc/*
[Regression Potential]
The upstream fix changes the permissions of the files /proc/*
CVE References
Changed in linux (Ubuntu Trusty): | |
assignee: | nobody → Kleber Sacilotto de Souza (kleber-souza) |
importance: | Undecided → Medium |
description: | updated |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → Fix Released |
On Precise 3.13 0b0>] do_wait+0x1f0/0x280 03f>] SyS_wait4+ 0xaf/0x120 3fc>] system_ call_fastpath+ 0x26/0x2b fff>] 0xffffffffffffffff
$ cat /proc/self/stack
cat: /proc/self/stack: Permission denied
$ sudo cat /proc/self/stack
[<ffffffff81073
[<ffffffff81074
[<ffffffff81782
[<fffffffffffff
$ ls -l /proc/self/stack
-r--r--r-- 1 ubuntu ubuntu 0 Jan 24 04:06 /proc/self/stack
But on Bionic, the file permission is:
$ ls -l /proc/self/stack
-r-------- 1 ubuntu ubuntu 0 Jan 24 12:07 /proc/self/stack