[GIT PULL] Misc hardening changes for 5.19-rc1

From: Gustavo A. R. Silva
Date: Tue May 24 2022 - 18:17:37 EST


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(-)