Skip to content

randstruct: gcc-plugin: Remove bogus void member

Kees Cook linux-hardening linux-mm linux-security-module lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3randstruct: gcc-plugin: Remove bogus void memberscripts/gcc-plugins/randomize_layout_plugin.c+1 -170 replies
2/3lib/tests: Add randstruct KUnit testMAINTAINERS lib/Kconfig.debug lib/tests/Makefile +1 more+293 -03 replies
3/3Revert "hardening: Disable GCC randstruct for COMPILE_TEST"security/Kconfig.hardening+1 -15 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDavid Gow
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member

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/[email protected]/

-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
Signature · 1 line
2.34.1