QRT failed on test_101_proc_fd_leaks (__main__.KernelSecurityTest)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Critical
|
Unassigned |
Bug Description
Running SRU tests for Natty 2.6.38-
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
08/08 22:02:52 ERROR|base_
Please note that the invalid opcode trap is bug 1028178; the hanging on ecryptfs tests is tracked by bug 1028112 and bug 1034179. This bug is about the test_101_
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-
ProcVersionSign
Uname: Linux 2.6.38-
AlsaDevices:
total 0
crw------- 1 root root 116, 1 2012-08-08 21:46 seq
crw------- 1 root root 116, 33 2012-08-08 21:46 timer
AplayDevices: Error: [Errno 2] No such file or directory
Architecture: i386
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
CurrentDmesg:
Date: Thu Aug 9 09:48:28 2012
HibernationDevice: RESUME=
IwConfig: Error: [Errno 2] No such file or directory
MachineType: Dell Inc. PowerEdge R415
PciMultimedia:
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.52.4
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/06/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.8.6
dmi.board.name: 08WNM9
dmi.board.vendor: Dell Inc.
dmi.board.version: A02
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: PowerEdge R415
dmi.sys.vendor: Dell Inc.
CVE References
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
tags: |
added: qa-regression-testing removed: qa-sru-testing |
The problem seems to be in the qrt framework code: the test fails to detect that the kernel contains already the fix for CVE-2011-1020 and inverts the test pass/fail criteria. The CVE fix check is done by checking the changelog in /usr/share/ doc/linux- image-VERSION/ changelog. Debian. gz. The problem is that this file is truncated, and the entry that refers to the CVE fix may be left out.
Here's the code from test-kernel- security. py: proc_fd_ leaks(self) : at_least( '3.0'):
expected = self.kernel_ claims_ cve_fixed( 'CVE-2011- 1020')
self. _skipped( "not fixed before Oneiric yet")
def test_101_
...
expected = True
# temporarily unfixed in stable releases...
if not self.kernel_
if not expected:
and the kernel_ claims_ cve_fixed( ) implementation, in file testlib.py: claims_ cve_fixed( self, cve): doc/linux- image-% s/changelog. Debian. gz" % (self.kernel_ version) exists( changelog) : changelog) :
return True
def kernel_
changelog = "/usr/share/
if os.path.
for line in gzip.open(
if cve in line and not "revert" in line and not "Revert" in line:
return False