Skip to contentSkip to conversation

hardening fixes for v6.16-rc1 (take 2)

GIT PULL Merged Kees Cook 2 participants 2 messages Jun 1, 2025

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

Hi Linus,

Please pull these hardening fixes for v6.16-rc1 (take 2). This is based on my original rc1 PR, rather than on the horribly mangled version of your tree.

Once merged with your tree, allmodconfig builds cleanly. Unmerged, this current tree of mine doesn't build allmodconfig cleanly, as it doesn't have the fix from d4ad53adfe21 ("drm/ttm: Remove the struct ttm_backup abstraction"), which is in your tree now. (Avoiding this warning was one of my motivations for the attempted merge-gone-wrong seen in take 1.)

Thanks and sorry for the horrible confusion and waste of everyone's time that was take 1 of this PR!

-Kees

The following changes since commit f0cd6012c40da99b45f8f63052b97ec89d5f307b:

Revert "hardening: Disable GCC randstruct for COMPILE_TEST" (2025-05-08 09:42:40 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.16-rc1-fix1-take2

for you to fetch changes up to f39f18f3c3531aa802b58a20d39d96e82eb96c14:

randstruct: gcc-plugin: Fix attribute addition (2025-06-01 08:41:11 -0700)

----------------------------------------------------------------
hardening fixes for v6.16-rc1 (take 2)

- randstruct: gcc-plugin: Fix attribute addition with GCC 15

- ubsan: integer-overflow: depend on BROKEN to keep this out of CI

- overflow: Introduce __DEFINE_FLEX for having no initializer

- wifi: iwlwifi: mld: Work around Clang loop unrolling bug

----------------------------------------------------------------
Kees Cook (4):
wifi: iwlwifi: mld: Work around Clang loop unrolling bug
ubsan: integer-overflow: depend on BROKEN to keep this out of CI
overflow: Introduce __DEFINE_FLEX for having no initializer
randstruct: gcc-plugin: Fix attribute addition

 lib/Kconfig.ubsan                             |  2 ++
 scripts/gcc-plugins/gcc-common.h              | 32 +++++++++++++++++++++++++++
 scripts/gcc-plugins/randomize_layout_plugin.c | 22 +++++++++---------
 include/linux/overflow.h                      | 25 ++++++++++++++++-----
 drivers/net/wireless/intel/iwlwifi/mld/d3.c   |  2 +-
 5 files changed, 65 insertions(+), 18 deletions(-)
Signature · 1 line
Kees Cook
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 1 Jun 2025 09:34:02 -0700:

The pull request you sent on Sun, 1 Jun 2025 09:34:02 -0700:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.16-rc1-fix1-take2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/cd2e103d57e5615f9bb027d772f93b9efd567224

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html