diff options
author | Kees Cook <keescook@chromium.org> | 2022-05-03 13:55:02 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-05-08 01:33:07 -0700 |
commit | be2b34fa9be31c60a95989f984c9a5d40cd781b6 (patch) | |
tree | a1b5f247ac20de2866d52ea68930b47268366efc /include/linux/vermagic.h | |
parent | randstruct: Split randstruct Makefile and CFLAGS (diff) | |
download | wireguard-linux-be2b34fa9be31c60a95989f984c9a5d40cd781b6.tar.xz wireguard-linux-be2b34fa9be31c60a95989f984c9a5d40cd781b6.zip |
randstruct: Move seed generation into scripts/basic/
To enable Clang randstruct support, move the structure layout
randomization seed generation out of scripts/gcc-plugins/ into
scripts/basic/ so it happens early enough that it can be used by either
compiler implementation. The gcc-plugin still builds its own header file,
but now does so from the common "randstruct.seed" file.
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220503205503.3054173-6-keescook@chromium.org
Diffstat (limited to 'include/linux/vermagic.h')
-rw-r--r-- | include/linux/vermagic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vermagic.h b/include/linux/vermagic.h index efb51a2da599..a54046bf37e5 100644 --- a/include/linux/vermagic.h +++ b/include/linux/vermagic.h @@ -33,7 +33,7 @@ #define MODULE_VERMAGIC_MODVERSIONS "" #endif #ifdef RANDSTRUCT -#include <generated/randomize_layout_hash.h> +#include <generated/randstruct_hash.h> #define MODULE_RANDSTRUCT "RANDSTRUCT_" RANDSTRUCT_HASHED_SEED #else #define MODULE_RANDSTRUCT |