Skip to contentSkip to conversation

Misc hardening changes for 5.19-rc1

GIT PULL Merged Gustavo A. R. Silva 2 participants 2 messages May 24, 2022 – May 26, 2022

lore
Share & tools
lore
#0 lore raw

The following changes since commit ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e:

Linux 5.18-rc2 (2022-04-10 14:21:36 -1000)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/size_t-saturating-helpers-5.19-rc1

for you to fetch changes up to 746f1b0ac5bf6ecfb71674af210ae476aa714f46:

virt: acrn: Prefer array_size and struct_size over open coded arithmetic (2022-04-26 10:20:10 -0500)

----------------------------------------------------------------
Misc hardening changes for 5.19-rc1

Hi Linus,

Please, pull the following hardening changes that I've been collecting in my tree during the last development cycle. All of them have been baking in linux-next.

Replace open-coded instances with size_t saturating arithmetic helpers:

- virt: acrn: Prefer array_size and struct_size over open coded arithmetic (Len Baker)
- afs: Prefer struct_size over open coded arithmetic (Len Baker)

Thanks
--
Gustavo

----------------------------------------------------------------
Len Baker (2):
afs: Prefer struct_size over open coded arithmetic
virt: acrn: Prefer array_size and struct_size over open coded arithmetic

 drivers/virt/acrn/acrn_drv.h | 10 ++++++----
 drivers/virt/acrn/mm.c       |  9 ++++-----
 fs/afs/security.c            |  3 +--
 3 files changed, 11 insertions(+), 11 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 24 May 2022 17:27:01 -0500:

The pull request you sent on Tue, 24 May 2022 17:27:01 -0500:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/size_t-saturating-helpers-5.19-rc1

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

Thank you!

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