randstruct: Reorganize Kconfigs and attribute macros
In preparation for Clang supporting randstruct, reorganize the Kconfigs, move the attribute macros, and generalize the feature to be named CONFIG_RANDSTRUCT for on/off, CONFIG_RANDSTRUCT_FULL for the full randomization mode, and CONFIG_RANDSTRUCT_PERFORMANCE for the cache-line sized mode. Cc: linux-hardening@vger.kernel.org Signed-off-by:Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20220503205503.3054173-4-keescook@chromium.org
Showing
- Documentation/kbuild/reproducible-builds.rst 3 additions, 4 deletionsDocumentation/kbuild/reproducible-builds.rst
- arch/riscv/Kconfig 1 addition, 1 deletionarch/riscv/Kconfig
- arch/x86/mm/pti.c 1 addition, 1 deletionarch/x86/mm/pti.c
- include/linux/compiler-gcc.h 0 additions, 8 deletionsinclude/linux/compiler-gcc.h
- include/linux/compiler_types.h 7 additions, 7 deletionsinclude/linux/compiler_types.h
- include/linux/vermagic.h 4 additions, 4 deletionsinclude/linux/vermagic.h
- kernel/panic.c 1 addition, 1 deletionkernel/panic.c
- scripts/Makefile.gcc-plugins 2 additions, 2 deletionsscripts/Makefile.gcc-plugins
- scripts/gcc-plugins/Kconfig 0 additions, 38 deletionsscripts/gcc-plugins/Kconfig
- security/Kconfig.hardening 62 additions, 0 deletionssecurity/Kconfig.hardening
Please register or sign in to comment