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 <broonie@kernel.org> Link: https://lore.kernel.org/all/20250407-kbuild-disable-gcc-plugins-v1-1-5d46ae583f5e@kernel.org/ [1] Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20250409151154.work.872-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 62d3244 commit f5c68a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/Kconfig.hardening

Lines changed: 1 addition & 1 deletion
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)