[GIT PULL] usercopy fixes for v4.8-rc6

From: Kees Cook
Date: Tue Sep 06 2016 - 15:37:48 EST


Hi,

Please pull these usercopy fixes for v4.8-rc6.

Thanks!

-Kees

The following changes since commit 46738ab31fe668ea1d4413dd459af2632f6fef8d:

Merge branch 'mailbox-devel' of git://git.linaro.org/landing-teams/working/fujitsu/integration (2016-09-06 11:15:07 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/usercopy-v4.8-rc6

for you to fetch changes up to 3c17648c2816f6d28bd2be9293032a2901994a36:

lkdtm: adjust usercopy tests to bypass const checks (2016-09-06 12:17:30 -0700)

----------------------------------------------------------------
- Inlines copy_*_user() for correct use of __builtin_const_p() for hardened
usercopy and the recent compile-time checks.
- Switches hardened usercopy to only check non-const size arguments to avoid
meaningless checks on likely-sane const values.
- Updates lkdtm usercopy tests to compenstate for the const checking.

----------------------------------------------------------------
Kees Cook (3):
x86/uaccess: force copy_*_user() to be inlined
usercopy: fold builtin_const check into inline function
lkdtm: adjust usercopy tests to bypass const checks

arch/ia64/include/asm/uaccess.h | 12 ++++--------
arch/powerpc/include/asm/uaccess.h | 19 +++++++------------
arch/sparc/include/asm/uaccess_32.h | 9 +++------
arch/sparc/include/asm/uaccess_64.h | 7 +++----
arch/x86/include/asm/uaccess.h | 4 ++--
drivers/misc/lkdtm_usercopy.c | 25 +++++++++++++++++--------
include/linux/thread_info.h | 3 ++-
7 files changed, 38 insertions(+), 41 deletions(-)

--
Kees Cook
Nexus Security