QRT kernel-security fails on /proc/sys/kernel/kptr_restrict

Bug #879516 reported by C de-Avillez
260
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-lts-backport-oneiric (Ubuntu)
Fix Released
Undecided
John Johansen

Bug Description

While regression-testing Oneric backported kernel on Lucid, I hit the following error on kernel-security:

======================================================================
FAIL: /proc/sys/kernel/kptr_restrict is enabled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-kernel-security.py", line 1182, in test_095_kernel_symbols_acl
    self._test_sysctl_value('kernel/kptr_restrict', expected, exists=expected)
  File "/home/ubuntu/qrt-test-kernel/testlib.py", line 930, in _test_sysctl_value
    self.assertEquals(exists, os.path.exists(sysctl), sysctl)
AssertionError: /proc/sys/kernel/kptr_restrict

----------------------------------------------------------------------
Ran 50 tests in 19.545s

FAILED (failures=1)

This happened for all kernels tested.

Revision history for this message
John Johansen (jjohansen) wrote :

This is a failing in the qrt test suite. It is expecting kptr_restrict to be on for the newer kernels but kptr_restrict needs to be enabled by userspace with a sysctl which Lucid is not doing.

Revision history for this message
C de-Avillez (hggdh2) wrote :

Given this is not a regression, I am re-tagging bug 878811 as qa-testing-passed. Subject matter experts should decide on what to do with this bug.

Changed in linux-lts-backport-oneiric (Ubuntu):
status: New → Triaged
assignee: nobody → John Johansen (jjohansen)
Revision history for this message
John Johansen (jjohansen) wrote :

A patch to fix the issue in qrt has been committed. Please verify that this resolves the issue.

Revision history for this message
C de-Avillez (hggdh2) wrote :

re-run test on Lucid with the Oneiric backported kernel; no errors reported. This looks good.

On the other hand, I got this error on a Maverick-onMaverick kernel SRU test.

information type: Private Security → Public Security
Changed in linux-lts-backport-oneiric (Ubuntu):
status: Triaged → Won't Fix
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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