Skip to content

Commit f5c68a4

Browse files
committed
hardening: Disable GCC randstruct for COMPILE_TEST
There is a GCC crash bug in the randstruct for latest GCC versions that is being tickled by landlock[1]. Temporarily disable GCC randstruct for COMPILE_TEST builds to unbreak CI systems for the coming -rc2. This can be restored once the bug is fixed. Suggested-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ [1] Acked-by: Mark Brown <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 62d3244 commit f5c68a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/Kconfig.hardening

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ config CC_HAS_RANDSTRUCT
344344

345345
choice
346346
prompt "Randomize layout of sensitive kernel structures"
347-
default RANDSTRUCT_FULL if COMPILE_TEST && (GCC_PLUGINS || CC_HAS_RANDSTRUCT)
347+
default RANDSTRUCT_FULL if COMPILE_TEST && CC_HAS_RANDSTRUCT
348348
default RANDSTRUCT_NONE
349349
help
350350
If you enable this, the layouts of structures that are entirely

0 commit comments

Comments
 (0)