← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 1895311] Re: risc-v 5.8 kernel test-kernel-security.py test failures

 

Riscv 5.8 EOL, closing this bug.

** Changed in: ubuntu-kernel-tests
       Status: New => Won't Fix

** Changed in: qa-regression-testing
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/1895311

Title:
  risc-v 5.8 kernel test-kernel-security.py test failures

Status in QA Regression Testing:
  Invalid
Status in ubuntu-kernel-tests:
  Won't Fix

Bug description:
  Running RISC-V in QEMU emulator we hit the following adt test
  failures:

  15:30:56 ERROR| [stderr] ======================================================================
  15:30:56 ERROR| [stderr] FAIL: test_130_config_debug_rodata (__main__.KernelSecurityConfigTest)
  15:30:56 ERROR| [stderr] CONFIG_DEBUG_RODATA/CONFIG_STRICT_KERNEL_RWX enabled
  15:30:56 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:56 ERROR| [stderr] Traceback (most recent call last):
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 2360, in test_130_config_debug_rodata
  15:30:56 ERROR| [stderr]     self.assertKernelConfig(option, expected)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 216, in assertKernelConfig
  15:30:56 ERROR| [stderr]     self.assertKernelConfigUnset(name)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 207, in assertKernelConfigUnset
  15:30:56 ERROR| [stderr]     '%s option was expected to be unset in the kernel config' % name)
  15:30:56 ERROR| [stderr] AssertionError: STRICT_KERNEL_RWX option was expected to be unset in the kernel config
  15:30:56 ERROR| [stderr]
  15:30:56 ERROR| [stderr] ======================================================================
  15:30:56 ERROR| [stderr] FAIL: test_180_config_stack_protector (__main__.KernelSecurityConfigTest)
  15:30:56 ERROR| [stderr] CONFIG_CC_STACKPROTECTOR set
  15:30:56 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:56 ERROR| [stderr] Traceback (most recent call last):
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 2520, in test_180_config_stack_protector
  15:30:56 ERROR| [stderr]     self.assertKernelConfig(config_option, expected)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 214, in assertKernelConfig
  15:30:56 ERROR| [stderr]     self.assertKernelConfigSet(name)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 201, in assertKernelConfigSet
  15:30:56 ERROR| [stderr]     '%s option was expected to be set in the kernel config' % name)
  15:30:56 ERROR| [stderr] AssertionError: STACKPROTECTOR option was expected to be set in the kernel config
  15:30:56 ERROR| [stderr] ======================================================================
  15:30:56 ERROR| [stderr] FAIL: test_180_config_stack_protector (__main__.KernelSecurityConfigTest)
  15:30:56 ERROR| [stderr] CONFIG_CC_STACKPROTECTOR set
  15:30:56 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:56 ERROR| [stderr] Traceback (most recent call last):
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 2520, in test_180_config_stack_protector
  15:30:56 ERROR| [stderr]     self.assertKernelConfig(config_option, expected)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 214, in assertKernelConfig
  15:30:56 ERROR| [stderr]     self.assertKernelConfigSet(name)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 201, in assertKernelConfigSet
  15:30:56 ERROR| [stderr]     '%s option was expected to be set in the kernel config' % name)
  15:30:56 ERROR| [stderr] AssertionError: STACKPROTECTOR option was expected to be set in the kernel config
  15:30:56 ERROR| [stderr]
  15:30:56 ERROR| [stderr] ======================================================================
  15:30:56 ERROR| [stderr] FAIL: test_185_config_stack_protector_strong (__main__.KernelSecurityConfigTest)
  15:30:56 ERROR| [stderr] CONFIG_CC_STACKPROTECTOR_STRONG set
  15:30:56 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:56 ERROR| [stderr] Traceback (most recent call last):
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 2541, in test_185_config_stack_protector_strong
  15:30:56 ERROR| [stderr]     self.assertKernelConfig(config_option, expected)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 214, in assertKernelConfig
  15:30:56 ERROR| [stderr]     self.assertKernelConfigSet(name)
  15:30:56 ERROR| [stderr]   File "./test-kernel-security.py", line 201, in assertKernelConfigSet
  15:30:56 ERROR| [stderr]     '%s option was expected to be set in the kernel config' % name)
  15:30:57 ERROR| [stderr] AssertionError: STACKPROTECTOR_STRONG option was expected to be set in the kernel config
  15:30:57 ERROR| [stderr]
  15:30:57 ERROR| [stderr] ======================================================================
  15:30:57 ERROR| [stderr] FAIL: test_190_config_have_stack_protector (__main__.KernelSecurityConfigTest)
  15:30:57 ERROR| [stderr] CONFIG_HAVE_CC_STACKPROTECTOR set
  15:30:57 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:57 ERROR| [stderr] Traceback (most recent call last):
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 2555, in test_190_config_have_stack_protector
  15:30:57 ERROR| [stderr]     self.assertKernelConfig(config_option, expected)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 214, in assertKernelConfig
  15:30:57 ERROR| [stderr]     self.assertKernelConfigSet(name)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 201, in assertKernelConfigSet
  15:30:57 ERROR| [stderr]     '%s option was expected to be set in the kernel config' % name)
  15:30:57 ERROR| [stderr] AssertionError: HAVE_STACKPROTECTOR option was expected to be set in the kernel config
  15:30:57 ERROR| [stderr]
  15:30:57 ERROR| [stderr] ======================================================================
  15:30:57 ERROR| [stderr] FAIL: test_290_config_hardened_usercopy (__main__.KernelSecurityConfigTest)
  15:30:57 ERROR| [stderr] Ensure CONFIG_HARDENED_USERCOPY is set
  15:30:57 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:57 ERROR| [stderr] Traceback (most recent call last):
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 2684, in test_290_config_hardened_usercopy
  15:30:57 ERROR| [stderr]     self.assertKernelConfigUnset(config_name)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 207, in assertKernelConfigUnset
  15:30:57 ERROR| [stderr]     '%s option was expected to be unset in the kernel config' % name)
  15:30:57 ERROR| [stderr] AssertionError: HARDENED_USERCOPY option was expected to be unset in the kernel config
  15:30:57 ERROR| [stderr] ======================================================================
  15:30:57 ERROR| [stderr] FAIL: test_330_config_debug_wx (__main__.KernelSecurityConfigTest)
  15:30:57 ERROR| [stderr] Ensure DEBUG_WX is set
  15:30:57 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:57 ERROR| [stderr] Traceback (most recent call last):
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 2757, in test_330_config_debug_wx
  15:30:57 ERROR| [stderr]     self.assertKernelConfig('DEBUG_WX', expected)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 216, in assertKernelConfig
  15:30:57 ERROR| [stderr]     self.assertKernelConfigUnset(name)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 207, in assertKernelConfigUnset
  15:30:57 ERROR| [stderr]     '%s option was expected to be unset in the kernel config' % name)
  15:30:57 ERROR| [stderr] AssertionError: DEBUG_WX option was expected to be unset in the kernel config
  15:30:57 ERROR| [stderr]
  15:30:57 ERROR| [stderr] ======================================================================
  15:30:57 ERROR| [stderr] FAIL: test_350_config_thread_info_in_stack (__main__.KernelSecurityConfigTest)
  15:30:57 ERROR| [stderr] Ensure THREAD_INFO_IN_TASK is set
  15:30:57 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:57 ERROR| [stderr] Traceback (most recent call last):
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 2782, in test_350_config_thread_info_in_stack
  15:30:57 ERROR| [stderr]     self.assertKernelConfig('THREAD_INFO_IN_TASK', expected)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 216, in assertKernelConfig
  15:30:57 ERROR| [stderr]     self.assertKernelConfigUnset(name)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 207, in assertKernelConfigUnset
  15:30:57 ERROR| [stderr]     '%s option was expected to be unset in the kernel config' % name)
  15:30:57 ERROR| [stderr] AssertionError: THREAD_INFO_IN_TASK option was expected to be unset in the kernel config
  15:30:57 ERROR| [stderr]
  15:30:57 ERROR| [stderr] ======================================================================
  15:30:57 ERROR| [stderr] FAIL: test_020_aslr_dapper_stack (__main__.KernelSecurityTest)
  15:30:57 ERROR| [stderr] ASLR of stack
  15:30:57 ERROR| [stderr] ----------------------------------------------------------------------
  15:30:57 ERROR| [stderr] Traceback (most recent call last):
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 1718, in test_020_aslr_dapper_stack
  15:30:57 ERROR| [stderr]     self._test_aslr('stack', 0)
  15:30:57 ERROR| [stderr]   File "./test-kernel-security.py", line 1704, in _test_aslr
  15:30:57 ERROR| [stderr]     self.assertShellExitEquals(0, build)
  15:30:57 ERROR| [stderr]   File "/home/cking/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1158, in assertShellExitEquals
  15:30:57 ERROR| [stderr]     self.assertEqual(expected, rc, msg + result + report)
  15:30:57 ERROR| [stderr] AssertionError: Got exit code 2, expected 0
  15:30:57 ERROR| [stderr] Command: 'make'
  15:30:57 ERROR| [stderr] Output:
  15:30:57 ERROR| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -fPIC -pie -o aslr aslr.c -ldl
  15:30:57 ERROR| [stderr] aslr.c: In function ‘area_pointer’:
  15:30:57 ERROR| [stderr] aslr.c:144:41: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘uintptr_t’ {aka ‘long unsigned int’} [-Wformat=]
  15:30:57 ERROR| [stderr]   144 |      fprintf(stderr, "[pie] AREA_MMAP: %p\tAREA_TEXT: %p\n", area_pointer(AREA_MMAP),
  15:30:57 ERROR| [stderr]       |                                        ~^                    ~~~~~~~~~~~~~~~~~~~~~~~
  15:30:57 ERROR| [stderr]       |                                         |                    |
  15:30:58 ERROR| [stderr]       |                                         void *               uintptr_t {aka long unsigned int}
  15:30:58 ERROR| [stderr]       |                                        %ld
  15:30:58 ERROR| [stderr] aslr.c:144:56: warning: format ‘%p’ expects argument of type ‘void *’, but argument 4 has type ‘uintptr_t’ {aka ‘long unsigned int’} [-Wformat=]
  15:30:58 ERROR| [stderr]   144 |      fprintf(stderr, "[pie] AREA_MMAP: %p\tAREA_TEXT: %p\n", area_pointer(AREA_MMAP),
  15:30:58 ERROR| [stderr]       |                                                       ~^
  15:30:58 ERROR| [stderr]       |                                                        |
  15:30:58 ERROR| [stderr]       |                                                        void *
  15:30:58 ERROR| [stderr]       |                                                       %ld
  15:30:58 ERROR| [stderr]   145 |        area_pointer(AREA_TEXT));
  15:30:58 ERROR| [stderr]       |        ~~~~~~~~~~~~~~~~~~~~~~~
  15:30:58 ERROR| [stderr]       |        |
  15:30:58 ERROR| [stderr]       |        uintptr_t {aka long unsigned int}
  15:30:58 ERROR| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -fPIC -pie -o mmap-growth-direction mmap-growth-direction.c
  15:30:58 ERROR| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -m32 -fPIC -pie -o aslr32 aslr.c -ldl
  15:30:58 ERROR| [stderr] cc: error: unrecognized command-line option ‘-m32’
  15:30:58 ERROR| [stderr] make: *** [Makefile:28: aslr32] Error 1

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