Comment 5 for bug 1760643

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Steve,
Today I found this one is still failing on 4.4 KVM:

  FAIL: test_072_config_debug_rodata (__main__.KernelSecurityTest)
  CONFIG_DEBUG_RODATA/CONFIG_STRICT_KERNEL_RWX enabled
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-kernel-security.py", line 674, in test_072_config_debug_rodata
      self.assertEqual(self._test_config(option), expected)
  AssertionError: False != True

ubuntu@zeppo:~$ cat /proc/version_signature
Ubuntu 4.4.0-1022.27-kvm 4.4.128

These two configs are not enabled in the kernel config file:
$ grep -e CONFIG_DEBUG_RODATA -e CONFIG_STRICT_KERNEL_RWX /boot/config-4.4.0-1022-kvm
# CONFIG_DEBUG_RODATA is not set

As in you comment #3 the CONFIG_KERNEL_DEBUG should be CONFIG_DEBUG_KERNEL instead?
The code was checking for "DEBUG_KERNEL", and this one is enabled in the 4.4 KVM kernel

$ grep DEBUG_KERNEL /boot/config-4.4.0-1022-kvm
CONFIG_DEBUG_KERNEL=y

Therefore I will re-open the task for q-r-t.