[GIT PULL] usercopy fix for v5.4-rc1

From: Kees Cook
Date: Thu Sep 26 2019 - 14:35:47 EST


Hi Linus,

Please pull this usercopy fix for v5.4-rc1. Randy found a corner case
(HIGHMEM, DEBUG_VIRTUAL, >512MB RAM) with hardened usercopy that went
unnoticed since v4.8. This adds HIGHMEM awareness to hardened usercopy,
and has been living in -next for a bit more than a week now.

Thanks!

-Kees

The following changes since commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8:

Linux 5.3 (2019-09-15 14:19:32 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/usercopy-v5.4-rc1

for you to fetch changes up to 314eed30ede02fa925990f535652254b5bad6b65:

usercopy: Avoid HIGHMEM pfn warning (2019-09-17 15:20:17 -0700)

----------------------------------------------------------------
Fix hardened usercopy under CONFIG_DEBUG_VIRTUAL

----------------------------------------------------------------
Kees Cook (1):
usercopy: Avoid HIGHMEM pfn warning

mm/usercopy.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

--
Kees Cook