Skip to contentSkip to conversation

array-bounds updates for v5.18-rc1

GIT PULL Merged Kees Cook 2 participants 2 messages Mar 25, 2022 – Mar 26, 2022 Kbuild

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

Hi Linus,

Please pull these array-bounds updates for v5.18-rc1. Like the FORTIFY_SOURCE tree, I was waiting for all the various other trees with fixes to get merged. It looks like scsi was the last major tree I was waiting on. This enables -Warray-bounds and -Wzero-length-bounds, now that the many bug fixes have landed all over the place in the kernel, and in GCC itself[1].

Earlier build testing of this series merged against your tree didn't show any new warnings, but as this option has been a bit of a whack-a-mole over the last development cycle in -next, it's possible new cases have appeared. We will remain vigilant. :) A couple fixes[2] for known corner-case issues currently live in my "pending-fixes" tree which I'm expecting to send next week if other maintainers still haven't picked them up.

I'm also expecting we can enable -Wstringop-overflow next cycle, as there are only a few stragglers[3], but it might even be possible for this release.

Thanks!

-Kees

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578
[2] https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/pending-fixes&id=2d253138910eec553fc706379914243d71de9b85
[3] https://github.com/KSPP/linux/issues/181

The following changes since commit dfd42facf1e4ada021b939b4e19c935dcdd55566:

Linux 5.17-rc3 (2022-02-06 12:20:50 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/array-bounds-v5.18-rc1

for you to fetch changes up to 00a4f836eb369723b148e3f250c850a028778832:

Makefile: Enable -Wzero-length-bounds (2022-02-13 16:49:40 -0800)

----------------------------------------------------------------
array-bounds updates for v5.18-rc1

- Enable -Warray-bounds globally

- Enable -Wzero-length-bounds globally

----------------------------------------------------------------
Kees Cook (2):
Makefile: Enable -Warray-bounds
Makefile: Enable -Wzero-length-bounds

 Makefile | 2 --
 1 file changed, 2 deletions(-)
Signature · 1 line
Kees Cook
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 25 Mar 2022 15:29:01 -0700:

The pull request you sent on Fri, 25 Mar 2022 15:29:01 -0700:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/array-bounds-v5.18-rc1

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

Thank you!

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