Skip to content

kbuild: Use -fzero-init-padding-bits=all

Kees Cook linux-hardening linux-kbuild lkml llvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v11 patch 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3stackinit: Add old-style zero-init syntax to struct testslib/stackinit_kunit.c+3 -00 replies
2/3stackinit: Add union initialization to selftestslib/stackinit_kunit.c+103 -03 replies
3/3kbuild: Use -fzero-init-padding-bits=allscripts/Makefile.extrawarn+3 -02 replies

Reviews trailers per patch

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

PatchNathan ChancellorMasahiro Yamada
1/3
2/3
3/3R-b A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] kbuild: Use -fzero-init-padding-bits=all

Hi,

This fixes the union initialization regression introduced by GCC 15, and improves explicit padding initialization for structs.

I can take this via the hardening tree if that's easiest.

-Kees

v2: Add updated stackinit KUnit tests, improve change log, add Reviewed-By
v1: https://lore.kernel.org/lkml/[email protected]/

Kees Cook (3):
stackinit: Add old-style zero-init syntax to struct tests
stackinit: Add union initialization to selftests
kbuild: Use -fzero-init-padding-bits=all

 lib/stackinit_kunit.c      | 106 +++++++++++++++++++++++++++++++++++++
 scripts/Makefile.extrawarn |   3 ++
 2 files changed, 109 insertions(+)
Signature · 1 line
2.34.1