randstruct: Reorganize Kconfigs and attribute macros
authorKees Cook <keescook@chromium.org>
Tue, 3 May 2022 20:55:00 +0000 (13:55 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 8 May 2022 08:33:06 +0000 (01:33 -0700)
commit595b893e2087de306d0781795fb8ec47873596a6
treee2331cc2b11ad02e5d6cb20dca176b9ccbb819e8
parentd3646589703731026ae7bcba5731fa7a7d0e5291
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
Documentation/kbuild/reproducible-builds.rst
arch/riscv/Kconfig
arch/x86/mm/pti.c
include/linux/compiler-gcc.h
include/linux/compiler_types.h
include/linux/vermagic.h
kernel/panic.c
scripts/Makefile.gcc-plugins
scripts/gcc-plugins/Kconfig
security/Kconfig.hardening