Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "hardening: Disable GCC randstruct for COMPILE_TEST"

This reverts commit f5c68a4e84f9feca3be578199ec648b676db2030.

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>

+1 -1
+1 -1
security/Kconfig.hardening
··· 344 344 345 345 choice 346 346 prompt "Randomize layout of sensitive kernel structures" 347 - default RANDSTRUCT_FULL if COMPILE_TEST && CC_HAS_RANDSTRUCT 347 + default RANDSTRUCT_FULL if COMPILE_TEST && (GCC_PLUGINS || CC_HAS_RANDSTRUCT) 348 348 default RANDSTRUCT_NONE 349 349 help 350 350 If you enable this, the layouts of structures that are entirely