linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member
@ 2025-04-27  1:38 Kees Cook
  2025-04-27  1:38 ` [PATCH 1/3] " Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Kees Cook @ 2025-04-27  1:38 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Kees Cook, Dr. David Alan Gilbert, Mark Brown, WangYuli,
	Mickaël Salaün, Günther Noack, Bill Wendling,
	Andrew Morton, Nathan Chancellor, Nick Desaulniers, Justin Stitt,
	Petr Mladek, David Gow, Rae Moar, Tamir Duberstein, Diego Vieira,
	Luis Chamberlain, Gustavo A. R. Silva, Paul Moore, James Morris,
	Serge E. Hallyn, linux-kernel, llvm, linux-hardening,
	linux-security-module

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-05-30 22:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27  1:38 [PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member Kees Cook
2025-04-27  1:38 ` [PATCH 1/3] " Kees Cook
2025-04-27  1:38 ` [PATCH 2/3] lib/tests: Add randstruct KUnit test Kees Cook
2025-04-27  3:47   ` kernel test robot
2025-04-27  3:47   ` kernel test robot
2025-04-30 18:56     ` Kees Cook
2025-04-27  6:04   ` kernel test robot
2025-04-29  7:44   ` David Gow
2025-04-30 18:56     ` Kees Cook
2025-04-27  1:38 ` [PATCH 3/3] Revert "hardening: Disable GCC randstruct for COMPILE_TEST" Kees Cook
2025-05-30  0:06   ` Thiago Jung Bauermann
2025-05-30  5:12     ` Kees Cook
2025-05-30 19:09       ` Nathan Chancellor
2025-05-30 19:37         ` Kees Cook
2025-05-30 22:31         ` Kees Cook
2025-05-20 15:18 ` [PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member Mickaël Salaün
2025-05-20 16:14   ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).