Looks like the change to how /proc/kallsyms displays addresses was
introduced in:

commit d97106ab53f812910a62d18afb9dbe882819c1ba
Author: Linus Torvalds <torva...@linux-foundation.org>
Date:   Sat Jan 3 11:46:17 2009 -0800

    Make %p print '(null)' for NULL pointers

Upstream fixed it in 3a129cc2151425e5aeb69aeb25fbc994ec738137 but was
not originally submitted to linux-stable (that has been rectified).

It could be worked around in the qrt script, but I'm not convinced
that's the right thing to do here.

It should be noted that the behavior that the script is testing for,
kernel addresses in /proc/kallsyms not being visible to unprivileged
processes, is correct here. So there's no security impact from this, and
it should not block promoting kernels, from the security team's
perspective.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1751202

Title:
  test_095_kernel_symbols_missing in ubuntu_qrt_kernel_security failed
  on Bionic

Status in QA Regression Testing:
  New
Status in linux package in Ubuntu:
  Triaged

Bug description:
  This issue could be found on AMD64, ppc64le, ARM64, s390x (not sure
  about i386, which was not tested because of the deployment issue in
  the last cycle)

  Steps:
   1. Deploy an AMD64 system with Bionic
   2. sudo apt-get install git python-minimal -y
   3. git clone --depth=1 git://kernel.ubuntu.com/ubuntu/autotest-client-tests 
-b master-next
   4. git clone --depth=1 git://kernel.ubuntu.com/ubuntu/autotest
   5. rm -fr autotest/client/tests
   6. ln -sf ~/autotest-client-tests autotest/client/tests
   7. AUTOTEST_PATH=/home/ubuntu/autotest sudo -E 
autotest/client/autotest-local --verbose 
autotest/client/tests/ubuntu_qrt_kernel_security/control

    ERROR: test_095_kernel_symbols_missing (__main__.KernelSecurityTest)
    kernel addresses in kallsyms and modules are zeroed out
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "./test-kernel-security.py", line 1508, in 
test_095_kernel_symbols_missing
        self._check_pK_files(expected)
      File "./test-kernel-security.py", line 1440, in _check_pK_files
        expected)
      File "./test-kernel-security.py", line 1401, in _read_twice
        self.assertEqual(expected, 0 == int(address, 16), "%s: user saw %s" % 
(filename, address))
    ValueError: invalid literal for int() with base 16: '(null)'

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-4.15.0-10-generic 4.15.0-10.11
  ProcVersionSignature: User Name 4.15.0-10.11-generic 4.15.3
  Uname: Linux 4.15.0-10-generic x86_64
  AlsaDevices:
   total 0
   crw-rw---- 1 root audio 116,  1 Feb 23 04:53 seq
   crw-rw---- 1 root audio 116, 33 Feb 23 04:53 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
  ApportVersion: 2.20.8-0ubuntu10
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 
'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CurrentDmesg:

  Date: Fri Feb 23 06:57:48 2018
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
  MachineType: Dell Inc. PowerEdge R320
  PciMultimedia:

  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 mgadrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-10-generic 
root=UUID=0845f9a0-ab8c-4dfa-8385-af21f2f2b9ad ro
  RelatedPackageVersions:
   linux-restricted-modules-4.15.0-10-generic N/A
   linux-backports-modules-4.15.0-10-generic  N/A
   linux-firmware                             1.171
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 05/11/2012
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.2.4
  dmi.board.name: 0DY523
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A03
  dmi.chassis.type: 23
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.2.4:bd05/11/2012:svnDellInc.:pnPowerEdgeR320:pvr:rvnDellInc.:rn0DY523:rvrA03:cvnDellInc.:ct23:cvr:
  dmi.product.name: PowerEdge R320
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/1751202/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to