[GIT PULL] usercopy updates for v4.11-rc1

From: Kees Cook
Date: Tue Feb 21 2017 - 15:04:04 EST


Please pull these usercopy changes for v4.11-rc1.



The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88:

Linux 4.10-rc2 (2017-01-01 14:31:53 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/usercopy-v4.11-rc1

for you to fetch changes up to 4c5d7bc63775b40631b75f6c59a3a3005455262d:

usercopy: Add tests for all get_user() sizes (2017-02-21 11:59:38 -0800)

This improves the usercopy tests:
- check zeroing on failed copy_from_user()/get_user() (caught bug on ARM)
- adjust tests for SMAP/PAN (can't zero userspace memory on failure)

Hoeun Ryu (1):
usercopy: add testcases to check zeroing on failure

Kees Cook (2):
usercopy: Adjust tests to deal with SMAP/PAN
usercopy: Add tests for all get_user() sizes

lib/test_user_copy.c | 117 +++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 103 insertions(+), 14 deletions(-)

Kees Cook
Pixel Security