kernel_security qrt failing on s390x configs

Bug #1611472 reported by Brad Figg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
New
Undecided
Unassigned

Bug Description

This is happening on Yakkety but I think it's also happening on Xenial as well ...

35. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_020_aslr_dapper_stack (__main__.KernelSecurityTest)
36. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of stack ... FAIL
37. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_021_aslr_dapper_libs (__main__.KernelSecurityTest)
38. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of libs ... FAIL
39. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_021_aslr_dapper_mmap (__main__.KernelSecurityTest)
40. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of mmap ... FAIL
41. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_022_aslr_hardy_text (__main__.KernelSecurityTest)
42. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of text ... FAIL
43. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_022_aslr_hardy_vdso (__main__.KernelSecurityTest)
44. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of vdso ... FAIL
45. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_022_aslr_intrepid_brk (__main__.KernelSecurityTest)
46. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of brk ... FAIL
47. 08/09 19:02:07 ERROR| utils:0153| [stderr] test_023_aslr_wily_pie (__main__.KernelSecurityTest)
48. 08/09 19:02:07 ERROR| utils:0153| [stderr] ASLR of text vs libs ... FAIL

83. 08/09 19:02:09 ERROR| utils:0153| [stderr] test_072_config_debug_rodata (__main__.KernelSecurityTest)
84. 08/09 19:02:09 ERROR| utils:0153| [stderr] CONFIG_DEBUG_RODATA enabled ... FAIL

161. 08/09 19:02:39 ERROR| utils:0153| [stderr] FAIL: test_020_aslr_dapper_stack (__main__.KernelSecurityTest)
162. 08/09 19:02:39 ERROR| utils:0153| [stderr] ASLR of stack
163. 08/09 19:02:39 ERROR| utils:0153| [stderr] ----------------------------------------------------------------------
164. 08/09 19:02:39 ERROR| utils:0153| [stderr] Traceback (most recent call last):
165. 08/09 19:02:39 ERROR| utils:0153| [stderr] File "./test-kernel-security.py", line 1727, in test_020_aslr_dapper_stack
166. 08/09 19:02:39 ERROR| utils:0153| [stderr] self._test_aslr('stack', 0)
167. 08/09 19:02:39 ERROR| utils:0153| [stderr] File "./test-kernel-security.py", line 1713, in _test_aslr
168. 08/09 19:02:39 ERROR| utils:0153| [stderr] self.assertShellExitEquals(0, build)
169. 08/09 19:02:39 ERROR| utils:0153| [stderr] File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/scripts/testlib.py", line 1124, in assertShellExitEquals
170. 08/09 19:02:39 ERROR| utils:0153| [stderr] self.assertEqual(expected, rc, msg + result + report)
171. 08/09 19:02:39 ERROR| utils:0153| [stderr] AssertionError: Got exit code 2, expected 0
172. 08/09 19:02:39 ERROR| utils:0153| [stderr] Command: 'make'
173. 08/09 19:02:39 ERROR| utils:0153| [stderr] Output:
174. 08/09 19:02:39 ERROR| utils:0153| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -fPIC -pie -o aslr aslr.c -ldl
175. 08/09 19:02:39 ERROR| utils:0153| [stderr] aslr.c: In function ‘area_pointer’:
176. 08/09 19:02:39 ERROR| utils:0153| [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=]
177. 08/09 19:02:39 ERROR| utils:0153| [stderr] fprintf(stderr, "[pie] AREA_MMAP: %p\tAREA_TEXT: %p\n", area_pointer(AREA_MMAP),
178. 08/09 19:02:39 ERROR| utils:0153| [stderr] ^
179. 08/09 19:02:39 ERROR| utils:0153| [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=]
180. 08/09 19:02:39 ERROR| utils:0153| [stderr] fprintf(stderr, "[pie] AREA_MMAP: %p\tAREA_TEXT: %p\n", area_pointer(AREA_MMAP),
181. 08/09 19:02:39 ERROR| utils:0153| [stderr] ^
182. 08/09 19:02:39 ERROR| utils:0153| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -fPIC -pie -o mmap-growth-direction mmap-growth-direction.c
183. 08/09 19:02:39 ERROR| utils:0153| [stderr] cc -Wall -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -m31 -fPIC -pie -o aslr32 aslr.c -ldl
184. 08/09 19:02:39 ERROR| utils:0153| [stderr] In file included from /usr/include/stdio.h:27:0,
185. 08/09 19:02:39 ERROR| utils:0153| [stderr] from aslr.c:13:
186. 08/09 19:02:39 ERROR| utils:0153| [stderr] /usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
187. 08/09 19:02:39 ERROR| utils:0153| [stderr] # include
188. 08/09 19:02:39 ERROR| utils:0153| [stderr] ^
189. 08/09 19:02:39 ERROR| utils:0153| [stderr] compilation terminated.
190. 08/09 19:02:39 ERROR| utils:0153| [stderr] Makefile:26: recipe for target 'aslr32' failed
191. 08/09 19:02:39 ERROR| utils:0153| [stderr] make: *** [aslr32] Error 1

and so on ...

Revision history for this message
Brad Figg (brad-figg) wrote :
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.