bounds fixes for v5.18-rc1
Hi Linus,
Please pull these scattered buffer and array bounds fixes for v5.18-rc1. These are a handful of fixes that I've been carrying in -next in preparation for the coming memcpy improvements and the enabling of -Warray-bounds globally. There are additional similar fixes in other maintainer's trees, but these ended up getting carried by me. :)
Thanks!
-Kees
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/bounds-fixes-v5.18-rc1
for you to fetch changes up to fad278388e01e3658a356118bed8ee2c2408d280:
media: omap3isp: Use struct_group() for memcpy() region (2022-02-27 10:58:04 -0800)
----------------------------------------------------------------
bounds-fixes updates for v5.18-rc1
- Various buffer and array bounds related fixes
----------------------------------------------------------------
Kees Cook (5):
intel_th: msu: Use memset_startat() for clearing hw header
m68k: cmpxchg: Dereference matching size
alpha: Silence -Warray-bounds warnings
tpm: vtpm_proxy: Check length to avoid compiler warning
media: omap3isp: Use struct_group() for memcpy() region
Sean Christopherson (1):
KVM: x86: Replace memset() "optimization" with normal per-field writes
arch/alpha/mm/init.c | 6 +++--- arch/m68k/include/asm/cmpxchg.h | 9 ++++----- arch/x86/kvm/emulate.c | 9 +++++++-- arch/x86/kvm/kvm_emulate.h | 6 +----- drivers/char/tpm/tpm_vtpm_proxy.c | 2 +- drivers/hwtracing/intel_th/msu.c | 4 +--- drivers/media/platform/omap3isp/ispstat.c | 5 +++-- include/uapi/linux/omap3isp.h | 21 +++++++++++++-------- 8 files changed, 33 insertions(+), 29 deletions(-)
Signature · 1 line
Kees Cook
The pull request you sent on Mon, 21 Mar 2022 08:52:31 -0700:
The pull request you sent on Mon, 21 Mar 2022 08:52:31 -0700:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/bounds-fixes-v5.18-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/8565d64430f8278bea38dab0a3ab60b4e11c71e4
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html
Hi Kees,
Quoted 1 line · Kees Cook
media: omap3isp: Use
struct_group()formemcpy()region
This patch has been applied to linux-media tree about a month ago. It may have taken a bit more time than usual to get to linux-next though.
Please try to remember to agree with maintainers in advance when merging patches via non-default routes.
Thanks.
Signature · 3 lines
Kind regards, Sakari Ailus
Quoted 10 lines · Sakari Ailus
Hi Kees,
Quoted 1 line · Kees Cook
media: omap3isp: Use
struct_group()formemcpy()regionThis patch has been applied to linux-media tree about a month ago. It may have taken a bit more time than usual to get to linux-next though.
Please try to remember to agree with maintainers in advance when merging patches via non-default routes.
Ah-ha; thank you for grabbing this one! I'm sorry I missed it while tending this tree; given the ordering of merges in -next, I've had to carry these kinds of fixes to avoid warnings popping up for various builders, but dropping accepted patches has been a manual process. I will see what I can do to automate this going forward.
-Kees
Signature · 1 line
Kees Cook