[PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member
Kees Cook
kees at kernel.org
Sun Apr 27 01:38:32 UTC 2025
Hi,
Okay, I've tracked down the problem with the randstruct GCC plugin,
and written a KUnit test to validate behaviors. This lets us add
it back the COMPILE_TEST builds.
No need for https://lore.kernel.org/all/20250421000854.work.572-kees@kernel.org/
-Kees
Kees Cook (3):
randstruct: gcc-plugin: Remove bogus void member
lib/tests: Add randstruct KUnit test
Revert "hardening: Disable GCC randstruct for COMPILE_TEST"
MAINTAINERS | 1 +
lib/Kconfig.debug | 8 +
lib/tests/Makefile | 1 +
lib/tests/randstruct_kunit.c | 283 ++++++++++++++++++
scripts/gcc-plugins/randomize_layout_plugin.c | 18 +-
security/Kconfig.hardening | 2 +-
6 files changed, 295 insertions(+), 18 deletions(-)
create mode 100644 lib/tests/randstruct_kunit.c
--
2.34.1
More information about the Linux-security-module-archive
mailing list