Test result without CONFIG_KALLSYMS and CONFIG_KALLSYMS_ALL enabled:

ubuntu@gummo:~$ sudo cat /proc/modules
signpost 12288 - - Live 0x0000000000000000 (OE)
fuse 77824 - - Live 0x0000000000000000
kvm_intel 180224 - - Live 0x0000000000000000
btrfs 819200 - - Live 0x0000000000000000
xor 20480 - - Live 0x0000000000000000
zstd_decompress 77824 - - Live 0x0000000000000000
zstd_compress 159744 - - Live 0x0000000000000000
xxhash 12288 - - Live 0x0000000000000000
lzo_compress 12288 - - Live 0x0000000000000000
raid6_pq 106496 - - Live 0x0000000000000000
pata_acpi 12288 - - Live 0x0000000000000000
ubuntu@gummo:~$ cat /proc/version_signature
Ubuntu 4.15.0-1008.8-kvm 4.15.17

Test result with CONFIG_KALLSYMS and CONFIG_KALLSYMS_ALL enabled:

ubuntu@gummo:~$ sudo cat /proc/modules
fuse 94208 3 - Live 0xffffffffc0560000
kvm_intel 196608 0 - Live 0xffffffffc052f000
btrfs 913408 0 - Live 0xffffffffc044f000
xor 24576 1 btrfs, Live 0xffffffffc0444000
zstd_decompress 86016 1 btrfs, Live 0xffffffffc042a000
zstd_compress 172032 1 btrfs, Live 0xffffffffc03fb000
xxhash 16384 2 zstd_decompress,zstd_compress, Live 0xffffffffc03f4000
lzo_compress 16384 1 btrfs, Live 0xffffffffc03ef000
raid6_pq 114688 1 btrfs, Live 0xffffffffc03ce000
pata_acpi 16384 0 - Live 0xffffffffc03c6000
ubuntu@gummo:~$ cat /proc/version_signature
Ubuntu 4.15.0-1009.9-kvm 4.15.17

Looks like this config option is the cause.
I also noticed that it was enabled in Xenial KVM, which explains why it passed 
with it.

If you think this config should be enabled for Bionic KVM as well, I will send 
to patch to the mailing list.
Thanks

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

Title:
  test_095_kernel_symbols_missing_proc_modules failed with 4.15 KVM
  kernel

Status in QA Regression Testing:
  Fix Committed
Status in linux package in Ubuntu:
  Invalid
Status in linux-kvm package in Ubuntu:
  Invalid
Status in linux source package in Bionic:
  Invalid
Status in linux-kvm source package in Bionic:
  Invalid

Bug description:
  test_095_kernel_symbols_missing_proc_modules from
  ubuntu_qrt_kernel_security test failed with 4.15.0-1004-kvm

    FAIL: test_095_kernel_symbols_missing_proc_modules 
(__main__.KernelSecurityTest)
    kernel addresses in /proc/modules are zeroed out
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "./test-kernel-security.py", line 1609, in 
test_095_kernel_symbols_missing_proc_modules
        self._check_pK_files(self._095_kernel_symbols_missing_proc_modules, 
expected=expected)
      File "./test-kernel-security.py", line 1492, in _check_pK_files
        test_function(expected_restricted)
      File "./test-kernel-security.py", line 1525, in 
_095_kernel_symbols_missing_proc_modules
        expected)
      File "./test-kernel-security.py", line 1414, in _read_twice
        self.assertFalse(0 == int(address, 16), "%s: root saw %s" % (filename, 
address))
    AssertionError: /proc/modules: root saw 0x0000000000000000

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-4.15.0-1004-kvm 4.15.0-1004.4
  ProcVersionSignature: User Name 4.15.0-1004.4-kvm 4.15.15
  Uname: Linux 4.15.0-1004-kvm x86_64
  ApportVersion: 2.20.9-0ubuntu5
  Architecture: amd64
  Date: Wed Apr 18 09:00:43 2018
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: linux-kvm
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/1764980/+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