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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx/

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

-- 
2.34.1





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux