hardening fixes for v6.14-rc2
Hi Linus,
Please pull these hardening fixes for v6.14-rc2. Addresses a KUnit stack initialization regression that got tickled on m68k, and solves a Clang (v14 and earlier) bug found by 0day.
Thanks!
-Kees
The following changes since commit dce4aab8441d285b9a78b33753e0bf583c1320ee:
kbuild: Use -fzero-init-padding-bits=all (2025-01-30 08:48:34 -0800)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.14-rc2
for you to fetch changes up to 6270f4deba3fbd77d1717fb8634f1fc612ff69e2:
string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*() (2025-02-06 18:48:04 -0800)
----------------------------------------------------------------
hardening fixes for v6.14-rc2
- Fix stackinit KUnit regression on m68k
- Use ARRAY_SIZE() for memtostr*()/strtomem*()
----------------------------------------------------------------
Geert Uytterhoeven (1):
stackinit: Fix comment for test_small_end
Kees Cook (4):
stackinit: Keep selftest union size small on m68k compiler.h: Move C string helpers into C-only kernel section compiler.h: Introduce __must_be_byte_array() string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()
include/linux/compiler.h | 32 +++++++++++++++++++------------- include/linux/string.h | 12 ++++++++---- lib/stackinit_kunit.c | 6 ++++-- 3 files changed, 31 insertions(+), 19 deletions(-)
Signature · 1 line
Kees Cook
The pull request you sent on Sat, 8 Feb 2025 12:43:42 -0800:
The pull request you sent on Sat, 8 Feb 2025 12:43:42 -0800:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.14-rc2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9946eaf552b194bb352c2945b54ff98c8193b3f1
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html