From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756824AbcIFTho (ORCPT ); Tue, 6 Sep 2016 15:37:44 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34184 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756775AbcIFThm (ORCPT ); Tue, 6 Sep 2016 15:37:42 -0400 Date: Tue, 6 Sep 2016 12:37:40 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, x86@kernel.org Subject: [GIT PULL] usercopy fixes for v4.8-rc6 Message-ID: <20160906193740.GA30814@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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