Commit f0cd6012 authored by Kees Cook's avatar Kees Cook
Browse files

Revert "hardening: Disable GCC randstruct for COMPILE_TEST"



This reverts commit f5c68a4e.

It is again possible to build "allmodconfig" with the randstruct GCC
plugin, so enable it for COMPILE_TEST to catch future bugs.

Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent f55aef7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ config CC_HAS_RANDSTRUCT

choice
	prompt "Randomize layout of sensitive kernel structures"
	default RANDSTRUCT_FULL if COMPILE_TEST && CC_HAS_RANDSTRUCT
	default RANDSTRUCT_FULL if COMPILE_TEST && (GCC_PLUGINS || CC_HAS_RANDSTRUCT)
	default RANDSTRUCT_NONE
	help
	  If you enable this, the layouts of structures that are entirely