[PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member
From: Kees Cook
Date: Sat Apr 26 2025 - 21:39:03 EST
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@xxxxxxxxxx/
-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