mbox series

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

Message ID 20250127190636.it.745-kees@kernel.org (mailing list archive)
Headers show
Series kbuild: Use -fzero-init-padding-bits=all | expand

Message

Kees Cook Jan. 27, 2025, 7:10 p.m. UTC
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/20250121003646.work.168-kees@kernel.org/

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(+)