hardening updates for v6.14-rc1 (fix1)
Hi Linus,
Please pull this hardening fix for v6.14-rc1. This is a fix for the soon to be released GCC 15 which has regressed its initialization of unions when performing explicit initialization (i.e. a general problem, not specifically a hardening problem; we're just carrying the fix). Details in the final patch, Acked by Masahiro, with updated selftests to validate the fix.
Thanks!
-Kees
The following changes since commit a9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d:
hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC (2025-01-08 14:17:33 -0800)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.14-rc1-fix1
for you to fetch changes up to dce4aab8441d285b9a78b33753e0bf583c1320ee:
kbuild: Use -fzero-init-padding-bits=all (2025-01-30 08:48:34 -0800)
----------------------------------------------------------------
hardening updates for v6.14-rc1-fix1
- Fix regression in GCC 15's initialization of union members
----------------------------------------------------------------
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
Kees Cook
The pull request you sent on Fri, 31 Jan 2025 13:38:58 -0800:
The pull request you sent on Fri, 31 Jan 2025 13:38:58 -0800:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.14-rc1-fix1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/73512f2a0b5c0531a9882e459ee3cd99396478b8
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html