KernelSecurityTest.test_072_strict_devmem in ubuntu_qrt_kernel_security fails on questing due to deprecated EXTRA_CFLAGS

Bug #2129839 reported by Edoardo Canepa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
New
Undecided
Unassigned
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

qrt-compat.h in make modules from scripts/kernel-security/mem/signpost/Makefile is given using EXTRA_CFLAGS which is deprecated in questing. Changing to ccflags-y soves the issue

Full log:
5876 18:18:37 INFO | START ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem timeout=300 timestamp=1760984317 localtime=Oct 20 18:18:37
5877 18:18:37 DEBUG| Persistent state client._record_indent now set to 2
5878 18:18:37 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem', 'ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem')
5879 18:18:37 DEBUG| Waiting for pid 3437 for 300 seconds
5880 18:18:37 WARNI| System python is too old, crash handling disabled
5881 18:18:37 DEBUG| Running 'python3 ./test-kernel-security.py -v KernelSecurityTest.test_072_strict_devmem'
5882 18:18:37 DEBUG| [stdout] Running test: './test-kernel-security.py' distro: 'Ubuntu 25.10' kernel: '6.17.0-7.7 (Ubuntu 6.17.0-7.7-generic 6.17.2)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
5883 18:18:37 ERROR| [stderr] test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
5884 18:18:38 ERROR| [stderr] /dev/mem unreadable for kernel memory ... FAIL
5885 18:18:38 ERROR| [stderr]
5886 18:18:38 ERROR| [stderr] ======================================================================
5887 18:18:38 ERROR| [stderr] FAIL: test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
5888 18:18:38 ERROR| [stderr] /dev/mem unreadable for kernel memory
5889 18:18:38 ERROR| [stderr] ----------------------------------------------------------------------
5890 18:18:38 ERROR| [stderr] Traceback (most recent call last):
5891 18:18:38 ERROR| [stderr] File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 665, in test_072_strict_devmem
5892 18:18:38 ERROR| [stderr] self.assertShellExitEquals(0, ["make"])
5893 18:18:38 ERROR| [stderr] ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
5894 18:18:38 ERROR| [stderr] File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1351, in assertShellExitEquals
5895 18:18:38 ERROR| [stderr] self.assertEqual(expected, rc, msg + result + report)
5896 18:18:38 ERROR| [stderr] ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5897 18:18:38 ERROR| [stderr] AssertionError: 0 != 2 : Got exit code 2, expected 0
5898 18:18:38 ERROR| [stderr] Command: 'make'
5899 18:18:38 ERROR| [stderr] Output:
5900 18:18:38 ERROR| [stderr] cc -Wall -Werror -O2 readmem.c -o readmem -lcap
5901 18:18:38 ERROR| [stderr] make -C signpost
5902 18:18:38 ERROR| [stderr] make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5903 18:18:38 ERROR| [stderr] make -C /usr/src/linux-headers-6.17.0-7-generic M=$PWD modules
5904 18:18:38 ERROR| [stderr] make[2]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
5905 18:18:38 ERROR| [stderr] make[3]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5906 18:18:38 ERROR| [stderr] warning: the compiler differs from the one used to build the kernel
5907 18:18:38 ERROR| [stderr] The kernel was built by: s390x-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
5908 18:18:38 ERROR| [stderr] You are using: gcc (Ubuntu 14.3.0-1ubuntu1) 14.3.0
5909 18:18:38 ERROR| [stderr] CC [M] signpost.o
5910 18:18:38 ERROR| [stderr] In file included from /usr/src/linux-headers-6.17.0-7-generic/include/linux/compat.h:17,
5911 18:18:38 ERROR| [stderr] from /usr/src/linux-headers-6.17.0-7-generic/arch/s390/include/asm/elf.h:165,
5912 18:18:38 ERROR| [stderr] from /usr/src/linux-headers-6.17.0-7-generic/include/linux/elf.h:6,
5913 18:18:38 ERROR| [stderr] from /usr/src/linux-headers-6.17.0-7-generic/include/linux/module.h:20,
5914 18:18:38 ERROR| [stderr] from signpost.c:14:
5915 18:18:38 ERROR| [stderr] /usr/src/linux-headers-6.17.0-7-generic/include/linux/fs.h:1143:9: warning: ‘counted_by’ attribute directive ignored [-Wattributes]
5916 18:18:38 ERROR| [stderr] 1143 | unsigned char f_handle[] __counted_by(handle_bytes);
5917 18:18:38 ERROR| [stderr] | ^~~~~~~~
5918 18:18:38 ERROR| [stderr] signpost.c:23:10: fatal error: qrt-compat.h: No such file or directory
5919 18:18:38 ERROR| [stderr] 23 | #include
5920 18:18:38 ERROR| [stderr] | ^~~~~~~~~~~~~~
5921 18:18:38 ERROR| [stderr] compilation terminated.
5922 18:18:38 ERROR| [stderr] make[5]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: signpost.o] Error 1
5923 18:18:38 ERROR| [stderr] make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
5924 18:18:38 ERROR| [stderr] make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
5925 18:18:38 ERROR| [stderr] make[3]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5926 18:18:38 ERROR| [stderr] make[2]: *** [Makefile:248: __sub-make] Error 2
5927 18:18:38 ERROR| [stderr] make[2]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
5928 18:18:38 ERROR| [stderr] make[1]: *** [Makefile:5: all] Error 2
5929 18:18:38 ERROR| [stderr] make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5930 18:18:38 ERROR| [stderr] make: *** [Makefile:6: all] Error 2
5931 18:18:38 ERROR| [stderr]
5932 18:18:38 ERROR| [stderr]
5933 18:18:38 ERROR| [stderr] ----------------------------------------------------------------------
5934 18:18:38 ERROR| [stderr] Ran 1 test in 0.699s
5935 18:18:38 ERROR| [stderr]
5936 18:18:38 ERROR| [stderr] FAILED (failures=1)
5937 18:18:38 ERROR| Exception escaping from test:
5938 Traceback (most recent call last):
5939 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
5940 _call_test_function(self.execute, *p_args, **p_dargs)
5941 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5942 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
5943 return func(*args, **dargs)
5944 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
5945 self._call_run_once(constraints, profile_only,
5946 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
5947 postprocess_profiled_run, args, dargs)
5948 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5949 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
5950 self.run_once(*args, **dargs)
5951 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
5952 File "/home/ubuntu/autotest/client/tests/ubuntu_qrt_kernel_security/ubuntu_qrt_kernel_security.py", line 79, in run_once
5953 self.results = utils.system_output(cmd, retain_output=True)
5954 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
5955 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
5956 out = run(command, timeout=timeout, ignore_status=ignore_status,
5957 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5958 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
5959 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5960 verbose=verbose, args=args).stdout
5961 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
5962 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
5963 raise error.CmdError(command, bg_job.result,
5964 "Command returned non-zero exit status")
5965 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
5966 * Command:
5967 python3 ./test-kernel-security.py -v
5968 KernelSecurityTest.test_072_strict_devmem
5969 Exit status: 1
5970 Duration: 0.7890539169311523
5971
5972 stdout:
5973 Running test: './test-kernel-security.py' distro: 'Ubuntu 25.10' kernel: '6.17.0-7.7 (Ubuntu 6.17.0-7.7-generic 6.17.2)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
5974 stderr:
5975 test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
5976 /dev/mem unreadable for kernel memory ... FAIL
5977
5978 ======================================================================
5979 FAIL: test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
5980 /dev/mem unreadable for kernel memory
5981 ----------------------------------------------------------------------
5982 Traceback (most recent call last):
5983 File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 665, in test_072_strict_devmem
5984 self.assertShellExitEquals(0, ["make"])
5985 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
5986 File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1351, in assertShellExitEquals
5987 self.assertEqual(expected, rc, msg + result + report)
5988 ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5989 AssertionError: 0 != 2 : Got exit code 2, expected 0
5990 Command: 'make'
5991 Output:
5992 cc -Wall -Werror -O2 readmem.c -o readmem -lcap
5993 make -C signpost
5994 make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5995 make -C /usr/src/linux-headers-6.17.0-7-generic M=$PWD modules
5996 make[2]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
5997 make[3]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
5998 warning: the compiler differs from the one used to build the kernel
5999 The kernel was built by: s390x-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
6000 You are using: gcc (Ubuntu 14.3.0-1ubuntu1) 14.3.0
6001 CC [M] signpost.o
6002 In file included from /usr/src/linux-headers-6.17.0-7-generic/include/linux/compat.h:17,
6003 from /usr/src/linux-headers-6.17.0-7-generic/arch/s390/include/asm/elf.h:165,
6004 from /usr/src/linux-headers-6.17.0-7-generic/include/linux/elf.h:6,
6005 from /usr/src/linux-headers-6.17.0-7-generic/include/linux/module.h:20,
6006 from signpost.c:14:
6007 /usr/src/linux-headers-6.17.0-7-generic/include/linux/fs.h:1143:9: warning: ‘counted_by’ attribute directive ignored [-Wattributes]
6008 1143 | unsigned char f_handle[] __counted_by(handle_bytes);
6009 | ^~~~~~~~
6010 signpost.c:23:10: fatal error: qrt-compat.h: No such file or directory
6011 23 | #include
6012 | ^~~~~~~~~~~~~~
6013 compilation terminated.
6014 make[5]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: signpost.o] Error 1
6015 make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
6016 make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
6017 make[3]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6018 make[2]: *** [Makefile:248: __sub-make] Error 2
6019 make[2]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
6020 make[1]: *** [Makefile:5: all] Error 2
6021 make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6022 make: *** [Makefile:6: all] Error 2
6023
6024
6025 ----------------------------------------------------------------------
6026 Ran 1 test in 0.699s
6027
6028 FAILED (failures=1)
6029 18:18:38 ERROR| child process failed
6030 18:18:38 DEBUG| Traceback (most recent call last):
6031 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
6032 18:18:38 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
6033 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6034 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
6035 18:18:38 DEBUG| return func(*args, **dargs)
6036 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
6037 18:18:38 DEBUG| self._call_run_once(constraints, profile_only,
6038 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
6039 18:18:38 DEBUG| postprocess_profiled_run, args, dargs)
6040 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6041 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
6042 18:18:38 DEBUG| self.run_once(*args, **dargs)
6043 18:18:38 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
6044 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_qrt_kernel_security/ubuntu_qrt_kernel_security.py", line 79, in run_once
6045 18:18:38 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
6046 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
6047 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
6048 18:18:38 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
6049 18:18:38 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6050 18:18:38 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
6051 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6052 18:18:38 DEBUG| verbose=verbose, args=args).stdout
6053 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6054 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
6055 18:18:38 DEBUG| raise error.CmdError(command, bg_job.result,
6056 18:18:38 DEBUG| "Command returned non-zero exit status")
6057 18:18:38 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
6058 18:18:38 DEBUG| * Command:
6059 18:18:38 DEBUG| python3 ./test-kernel-security.py -v
6060 18:18:38 DEBUG| KernelSecurityTest.test_072_strict_devmem
6061 18:18:38 DEBUG| Exit status: 1
6062 18:18:38 DEBUG| Duration: 0.7890539169311523
6063 18:18:38 DEBUG|
6064 18:18:38 DEBUG| stdout:
6065 18:18:38 DEBUG| Running test: './test-kernel-security.py' distro: 'Ubuntu 25.10' kernel: '6.17.0-7.7 (Ubuntu 6.17.0-7.7-generic 6.17.2)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
6066 18:18:38 DEBUG| stderr:
6067 18:18:38 DEBUG| test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6068 18:18:38 DEBUG| /dev/mem unreadable for kernel memory ... FAIL
6069 18:18:38 DEBUG|
6070 18:18:38 DEBUG| ======================================================================
6071 18:18:38 DEBUG| FAIL: test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6072 18:18:38 DEBUG| /dev/mem unreadable for kernel memory
6073 18:18:38 DEBUG| ----------------------------------------------------------------------
6074 18:18:38 DEBUG| Traceback (most recent call last):
6075 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 665, in test_072_strict_devmem
6076 18:18:38 DEBUG| self.assertShellExitEquals(0, ["make"])
6077 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
6078 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1351, in assertShellExitEquals
6079 18:18:38 DEBUG| self.assertEqual(expected, rc, msg + result + report)
6080 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6081 18:18:38 DEBUG| AssertionError: 0 != 2 : Got exit code 2, expected 0
6082 18:18:38 DEBUG| Command: 'make'
6083 18:18:38 DEBUG| Output:
6084 18:18:38 DEBUG| cc -Wall -Werror -O2 readmem.c -o readmem -lcap
6085 18:18:38 DEBUG| make -C signpost
6086 18:18:38 DEBUG| make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6087 18:18:38 DEBUG| make -C /usr/src/linux-headers-6.17.0-7-generic M=$PWD modules
6088 18:18:38 DEBUG| make[2]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
6089 18:18:38 DEBUG| make[3]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6090 18:18:38 DEBUG| warning: the compiler differs from the one used to build the kernel
6091 18:18:38 DEBUG| The kernel was built by: s390x-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
6092 18:18:38 DEBUG| You are using: gcc (Ubuntu 14.3.0-1ubuntu1) 14.3.0
6093 18:18:38 DEBUG| CC [M] signpost.o
6094 18:18:38 DEBUG| In file included from /usr/src/linux-headers-6.17.0-7-generic/include/linux/compat.h:17,
6095 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/arch/s390/include/asm/elf.h:165,
6096 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/include/linux/elf.h:6,
6097 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/include/linux/module.h:20,
6098 18:18:38 DEBUG| from signpost.c:14:
6099 18:18:38 DEBUG| /usr/src/linux-headers-6.17.0-7-generic/include/linux/fs.h:1143:9: warning: ‘counted_by’ attribute directive ignored [-Wattributes]
6100 18:18:38 DEBUG| 1143 | unsigned char f_handle[] __counted_by(handle_bytes);
6101 18:18:38 DEBUG| | ^~~~~~~~
6102 18:18:38 DEBUG| signpost.c:23:10: fatal error: qrt-compat.h: No such file or directory
6103 18:18:38 DEBUG| 23 | #include
6104 18:18:38 DEBUG| | ^~~~~~~~~~~~~~
6105 18:18:38 DEBUG| compilation terminated.
6106 18:18:38 DEBUG| make[5]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: signpost.o] Error 1
6107 18:18:38 DEBUG| make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
6108 18:18:38 DEBUG| make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
6109 18:18:38 DEBUG| make[3]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6110 18:18:38 DEBUG| make[2]: *** [Makefile:248: __sub-make] Error 2
6111 18:18:38 DEBUG| make[2]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
6112 18:18:38 DEBUG| make[1]: *** [Makefile:5: all] Error 2
6113 18:18:38 DEBUG| make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6114 18:18:38 DEBUG| make: *** [Makefile:6: all] Error 2
6115 18:18:38 DEBUG|
6116 18:18:38 DEBUG|
6117 18:18:38 DEBUG| ----------------------------------------------------------------------
6118 18:18:38 DEBUG| Ran 1 test in 0.699s
6119 18:18:38 DEBUG|
6120 18:18:38 DEBUG| FAILED (failures=1)
6121 18:18:38 DEBUG|
6122 18:18:38 DEBUG| During handling of the above exception, another exception occurred:
6123 18:18:38 DEBUG|
6124 18:18:38 DEBUG| Traceback (most recent call last):
6125 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
6126 18:18:38 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
6127 18:18:38 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
6128 18:18:38 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
6129 18:18:38 DEBUG|
6130 18:18:38 DEBUG| During handling of the above exception, another exception occurred:
6131 18:18:38 DEBUG|
6132 18:18:38 DEBUG| Traceback (most recent call last):
6133 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start
6134 18:18:38 DEBUG| l()
6135 18:18:38 DEBUG| ~^^
6136 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 506, in
6137 18:18:38 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
6138 18:18:38 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6139 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 121, in runtest
6140 18:18:38 DEBUG| common_test.runtest(job, url, tag, args, dargs, locals(), globals(),
6141 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6142 18:18:38 DEBUG| job.sysinfo.log_before_each_test,
6143 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6144 18:18:38 DEBUG| job.sysinfo.log_after_each_test,
6145 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6146 18:18:38 DEBUG| job.sysinfo.log_before_each_iteration,
6147 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6148 18:18:38 DEBUG| job.sysinfo.log_after_each_iteration)
6149 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6150 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
6151 18:18:38 DEBUG| mytest._exec(args, dargs)
6152 18:18:38 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^
6153 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 455, in _exec
6154 18:18:38 DEBUG| raise error.UnhandledTestError(e)
6155 18:18:38 DEBUG| autotest.client.shared.error.UnhandledTestError: Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
6156 18:18:38 DEBUG| Traceback (most recent call last):
6157 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
6158 18:18:38 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
6159 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6160 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
6161 18:18:38 DEBUG| return func(*args, **dargs)
6162 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
6163 18:18:38 DEBUG| self._call_run_once(constraints, profile_only,
6164 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
6165 18:18:38 DEBUG| postprocess_profiled_run, args, dargs)
6166 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6167 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
6168 18:18:38 DEBUG| self.run_once(*args, **dargs)
6169 18:18:38 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
6170 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_qrt_kernel_security/ubuntu_qrt_kernel_security.py", line 79, in run_once
6171 18:18:38 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
6172 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
6173 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
6174 18:18:38 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
6175 18:18:38 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6176 18:18:38 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
6177 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6178 18:18:38 DEBUG| verbose=verbose, args=args).stdout
6179 18:18:38 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6180 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
6181 18:18:38 DEBUG| raise error.CmdError(command, bg_job.result,
6182 18:18:38 DEBUG| "Command returned non-zero exit status")
6183 18:18:38 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
6184 18:18:38 DEBUG| * Command:
6185 18:18:38 DEBUG| python3 ./test-kernel-security.py -v
6186 18:18:38 DEBUG| KernelSecurityTest.test_072_strict_devmem
6187 18:18:38 DEBUG| Exit status: 1
6188 18:18:38 DEBUG| Duration: 0.7890539169311523
6189 18:18:38 DEBUG|
6190 18:18:38 DEBUG| stdout:
6191 18:18:38 DEBUG| Running test: './test-kernel-security.py' distro: 'Ubuntu 25.10' kernel: '6.17.0-7.7 (Ubuntu 6.17.0-7.7-generic 6.17.2)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
6192 18:18:38 DEBUG| stderr:
6193 18:18:38 DEBUG| test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6194 18:18:38 DEBUG| /dev/mem unreadable for kernel memory ... FAIL
6195 18:18:38 DEBUG|
6196 18:18:38 DEBUG| ======================================================================
6197 18:18:38 DEBUG| FAIL: test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6198 18:18:38 DEBUG| /dev/mem unreadable for kernel memory
6199 18:18:38 DEBUG| ----------------------------------------------------------------------
6200 18:18:38 DEBUG| Traceback (most recent call last):
6201 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 665, in test_072_strict_devmem
6202 18:18:38 DEBUG| self.assertShellExitEquals(0, ["make"])
6203 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
6204 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1351, in assertShellExitEquals
6205 18:18:38 DEBUG| self.assertEqual(expected, rc, msg + result + report)
6206 18:18:38 DEBUG| ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6207 18:18:38 DEBUG| AssertionError: 0 != 2 : Got exit code 2, expected 0
6208 18:18:38 DEBUG| Command: 'make'
6209 18:18:38 DEBUG| Output:
6210 18:18:38 DEBUG| cc -Wall -Werror -O2 readmem.c -o readmem -lcap
6211 18:18:38 DEBUG| make -C signpost
6212 18:18:38 DEBUG| make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6213 18:18:38 DEBUG| make -C /usr/src/linux-headers-6.17.0-7-generic M=$PWD modules
6214 18:18:38 DEBUG| make[2]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
6215 18:18:38 DEBUG| make[3]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6216 18:18:38 DEBUG| warning: the compiler differs from the one used to build the kernel
6217 18:18:38 DEBUG| The kernel was built by: s390x-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
6218 18:18:38 DEBUG| You are using: gcc (Ubuntu 14.3.0-1ubuntu1) 14.3.0
6219 18:18:38 DEBUG| CC [M] signpost.o
6220 18:18:38 DEBUG| In file included from /usr/src/linux-headers-6.17.0-7-generic/include/linux/compat.h:17,
6221 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/arch/s390/include/asm/elf.h:165,
6222 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/include/linux/elf.h:6,
6223 18:18:38 DEBUG| from /usr/src/linux-headers-6.17.0-7-generic/include/linux/module.h:20,
6224 18:18:38 DEBUG| from signpost.c:14:
6225 18:18:38 DEBUG| /usr/src/linux-headers-6.17.0-7-generic/include/linux/fs.h:1143:9: warning: ‘counted_by’ attribute directive ignored [-Wattributes]
6226 18:18:38 DEBUG| 1143 | unsigned char f_handle[] __counted_by(handle_bytes);
6227 18:18:38 DEBUG| | ^~~~~~~~
6228 18:18:38 DEBUG| signpost.c:23:10: fatal error: qrt-compat.h: No such file or directory
6229 18:18:38 DEBUG| 23 | #include
6230 18:18:38 DEBUG| | ^~~~~~~~~~~~~~
6231 18:18:38 DEBUG| compilation terminated.
6232 18:18:38 DEBUG| make[5]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: signpost.o] Error 1
6233 18:18:38 DEBUG| make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
6234 18:18:38 DEBUG| make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
6235 18:18:38 DEBUG| make[3]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6236 18:18:38 DEBUG| make[2]: *** [Makefile:248: __sub-make] Error 2
6237 18:18:38 DEBUG| make[2]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
6238 18:18:38 DEBUG| make[1]: *** [Makefile:5: all] Error 2
6239 18:18:38 DEBUG| make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6240 18:18:38 DEBUG| make: *** [Makefile:6: all] Error 2
6241 18:18:38 DEBUG|
6242 18:18:38 DEBUG|
6243 18:18:38 DEBUG| ----------------------------------------------------------------------
6244 18:18:38 DEBUG| Ran 1 test in 0.699s
6245 18:18:38 DEBUG|
6246 18:18:38 DEBUG| FAILED (failures=1)
6247 18:18:38 DEBUG|
6248 18:18:38 DEBUG| During handling of the above exception, another exception occurred:
6249 18:18:38 DEBUG|
6250 18:18:38 DEBUG| Traceback (most recent call last):
6251 18:18:38 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
6252 18:18:38 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
6253 18:18:38 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
6254 18:18:38 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
6255 18:18:38 DEBUG|
6256 18:18:39 INFO | ERROR ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem timestamp=1760984319 localtime=Oct 20 18:18:39 Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
6257 Traceback (most recent call last):
6258 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
6259 _call_test_function(self.execute, *p_args, **p_dargs)
6260 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6261 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
6262 return func(*args, **dargs)
6263 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
6264 self._call_run_once(constraints, profile_only,
6265 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
6266 postprocess_profiled_run, args, dargs)
6267 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6268 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
6269 self.run_once(*args, **dargs)
6270 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
6271 File "/home/ubuntu/autotest/client/tests/ubuntu_qrt_kernel_security/ubuntu_qrt_kernel_security.py", line 79, in run_once
6272 self.results = utils.system_output(cmd, retain_output=True)
6273 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
6274 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
6275 out = run(command, timeout=timeout, ignore_status=ignore_status,
6276 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6277 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
6278 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6279 verbose=verbose, args=args).stdout
6280 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6281 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
6282 raise error.CmdError(command, bg_job.result,
6283 "Command returned non-zero exit status")
6284 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
6285 * Command:
6286 python3 ./test-kernel-security.py -v
6287 KernelSecurityTest.test_072_strict_devmem
6288 Exit status: 1
6289 Duration: 0.7890539169311523
6290
6291 stdout:
6292 Running test: './test-kernel-security.py' distro: 'Ubuntu 25.10' kernel: '6.17.0-7.7 (Ubuntu 6.17.0-7.7-generic 6.17.2)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
6293 stderr:
6294 test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6295 /dev/mem unreadable for kernel memory ... FAIL
6296
6297 ======================================================================
6298 FAIL: test_072_strict_devmem (__main__.KernelSecurityTest.test_072_strict_devmem)
6299 /dev/mem unreadable for kernel memory
6300 ----------------------------------------------------------------------
6301 Traceback (most recent call last):
6302 File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 665, in test_072_strict_devmem
6303 self.assertShellExitEquals(0, ["make"])
6304 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
6305 File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1351, in assertShellExitEquals
6306 self.assertEqual(expected, rc, msg + result + report)
6307 ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6308 AssertionError: 0 != 2 : Got exit code 2, expected 0
6309 Command: 'make'
6310 Output:
6311 cc -Wall -Werror -O2 readmem.c -o readmem -lcap
6312 make -C signpost
6313 make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6314 make -C /usr/src/linux-headers-6.17.0-7-generic M=$PWD modules
6315 make[2]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
6316 make[3]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6317 warning: the compiler differs from the one used to build the kernel
6318 The kernel was built by: s390x-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
6319 You are using: gcc (Ubuntu 14.3.0-1ubuntu1) 14.3.0
6320 CC [M] signpost.o
6321 In file included from /usr/src/linux-headers-6.17.0-7-generic/include/linux/compat.h:17,
6322 from /usr/src/linux-headers-6.17.0-7-generic/arch/s390/include/asm/elf.h:165,
6323 from /usr/src/linux-headers-6.17.0-7-generic/include/linux/elf.h:6,
6324 from /usr/src/linux-headers-6.17.0-7-generic/include/linux/module.h:20,
6325 from signpost.c:14:
6326 /usr/src/linux-headers-6.17.0-7-generic/include/linux/fs.h:1143:9: warning: ‘counted_by’ attribute directive ignored [-Wattributes]
6327 1143 | unsigned char f_handle[] __counted_by(handle_bytes);
6328 | ^~~~~~~~
6329 signpost.c:23:10: fatal error: qrt-compat.h: No such file or directory
6330 23 | #include
6331 | ^~~~~~~~~~~~~~
6332 compilation terminated.
6333 make[5]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: signpost.o] Error 1
6334 make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
6335 make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
6336 make[3]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6337 make[2]: *** [Makefile:248: __sub-make] Error 2
6338 make[2]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
6339 make[1]: *** [Makefile:5: all] Error 2
6340 make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/kernel-security/mem/signpost'
6341 make: *** [Makefile:6: all] Error 2
6342
6343
6344 ----------------------------------------------------------------------
6345 Ran 1 test in 0.699s
6346
6347 FAILED (failures=1)
6348
6349 During handling of the above exception, another exception occurred:
6350
6351 Traceback (most recent call last):
6352 File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
6353 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
6354 ~~~~~~~~~~~^^^^^^^^^^^^^
6355 TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
6356

6357 18:18:39 INFO | END ERROR ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem ubuntu_qrt_kernel_security.KernelSecurityTest.test_072_strict_devmem timestamp=1760984319 localtime=Oct 20 18:18:39

Revision history for this message
Benjamin Wheeler (benjaminwheeler) wrote :

I am seeing the same problem on the following kernel with both this test case and KernelSecurityTest.test_120_smep_works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.