[GIT PULL] hardening fixes for v5.19-rc3

From: Kees Cook
Date: Wed Jun 15 2022 - 17:07:12 EST


Hi Linus,

Please pull these kernel hardening fixes for v5.19-rc3.

Thanks!

-Kees

The following changes since commit b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3:

Linux 5.19-rc2 (2022-06-12 16:11:37 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v5.19-rc3

for you to fetch changes up to 1dfbe9fcda4afc957f0e371e207ae3cb7e8f3b0e:

usercopy: Make usercopy resilient against ridiculously large copies (2022-06-13 09:54:52 -0700)

----------------------------------------------------------------
hardening fixes for v5.19-rc3

- Correctly handle vm_map areas in hardened usercopy (Matthew Wilcox)

- Adjust CFI RCU usage to avoid boot splats with cpuidle (Sami Tolvanen)

----------------------------------------------------------------
Matthew Wilcox (Oracle) (3):
usercopy: Handle vm_map_ram() areas
usercopy: Cast pointer to an integer once
usercopy: Make usercopy resilient against ridiculously large copies

Sami Tolvanen (1):
cfi: Fix __cfi_slowpath_diag RCU usage with cpuidle

include/linux/vmalloc.h | 1 +
kernel/cfi.c | 22 ++++++++++++++++------
mm/usercopy.c | 26 ++++++++++++--------------
mm/vmalloc.c | 2 +-
4 files changed, 30 insertions(+), 21 deletions(-)

--
Kees Cook