Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758958Ab1ELXuW (ORCPT ); Thu, 12 May 2011 19:50:22 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:13001 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757859Ab1ELXuQ (ORCPT ); Thu, 12 May 2011 19:50:16 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6344"; a="91115526" From: Stephen Boyd To: linux-kernel@vger.kernel.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Intel Linux Wireless , linux-scsi@vger.kernel.org, x86@kernel.org, Andrew Morton Subject: [PATCH 0/9] strict user copy checks on x86_64 Date: Thu, 12 May 2011 16:50:03 -0700 Message-Id: <1305244212-19183-1-git-send-email-sboyd@codeaurora.org> X-Mailer: git-send-email 1.7.5.1.217.g4e3aa Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3131 Lines: 63 It turns out that strict user copy checks (also known as CONFIG_DEBUG_STRICT_USER_COPY_CHECKS) isn't actually implemented on x86_64 and thus we aren't catching potential security holes at compile time. This series adds support for strict user copy checks on x86_64 and silences all the benign warnings in the x86_64 allyesconfig. The final patch consolidates the config option as its duplicated across mutliple arches. I don't know what tree this series should go through so I tried to send the individual driver patches to the respective maintainers. Stephen Boyd (9): iwlegacy: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning iwlwifi: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning [SCSI] lpfc: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning debugfs: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning kprobes: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning Bluetooth: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning ASoC: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning x86: Implement strict user copy checks for x86_64 Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS arch/parisc/Kconfig | 1 + arch/parisc/Kconfig.debug | 14 -------------- arch/s390/Kconfig | 1 + arch/s390/Kconfig.debug | 14 -------------- arch/s390/lib/Makefile | 1 - arch/s390/lib/usercopy.c | 8 -------- arch/sparc/lib/Makefile | 1 - arch/sparc/lib/usercopy.c | 8 -------- arch/tile/Kconfig | 8 +------- arch/tile/include/asm/uaccess.h | 7 ++++++- arch/tile/lib/uaccess.c | 8 -------- arch/x86/Kconfig | 1 + arch/x86/Kconfig.debug | 14 -------------- arch/x86/include/asm/uaccess_64.h | 12 +++++++++--- arch/x86/lib/usercopy_32.c | 6 ------ drivers/net/wireless/iwlegacy/iwl-4965-rs.c | 2 +- drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 2 +- drivers/scsi/lpfc/lpfc_debugfs.c | 3 ++- fs/debugfs/file.c | 2 +- kernel/kprobes.c | 2 +- lib/Kconfig.debug | 18 ++++++++++++++++++ lib/Makefile | 1 + lib/usercopy.c | 8 ++++++++ net/bluetooth/rfcomm/sock.c | 3 ++- sound/soc/soc-core.c | 2 +- 25 files changed, 55 insertions(+), 92 deletions(-) delete mode 100644 arch/s390/lib/usercopy.c delete mode 100644 arch/sparc/lib/usercopy.c create mode 100644 lib/usercopy.c -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/