mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
Revert "hardening: Disable GCC randstruct for COMPILE_TEST"
This reverts commit f5c68a4e84.
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: Kees Cook <kees@kernel.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user