From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752486AbdLLLBZ (ORCPT ); Tue, 12 Dec 2017 06:01:25 -0500 Received: from terminus.zytor.com ([65.50.211.136]:39503 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbdLLLBU (ORCPT ); Tue, 12 Dec 2017 06:01:20 -0500 Date: Tue, 12 Dec 2017 02:56:47 -0800 From: tip-bot for Kees Cook Message-ID: Cc: linux-kernel@vger.kernel.org, keescook@chromium.org, will.deacon@arm.com, torvalds@linux-foundation.org, labbott@redhat.com, akpm@linux-foundation.org, mark.rutland@arm.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org Reply-To: tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, akpm@linux-foundation.org, labbott@redhat.com, torvalds@linux-foundation.org, will.deacon@arm.com, linux-kernel@vger.kernel.org, keescook@chromium.org, hpa@zytor.com, mark.rutland@arm.com In-Reply-To: <20171201201000.GA44539@beast> References: <20171201201000.GA44539@beast> To: linux-tip-commits@vger.kernel.org Subject: [tip:core/debug] Kconfig: Make STRICT_DEVMEM default-y on x86 and arm64 Git-Commit-ID: 0f7cda2b824bb2afe0d75716a8664117fa03f5e0 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0f7cda2b824bb2afe0d75716a8664117fa03f5e0 Gitweb: https://git.kernel.org/tip/0f7cda2b824bb2afe0d75716a8664117fa03f5e0 Author: Kees Cook AuthorDate: Fri, 1 Dec 2017 12:10:00 -0800 Committer: Ingo Molnar CommitDate: Mon, 11 Dec 2017 18:41:26 +0100 Kconfig: Make STRICT_DEVMEM default-y on x86 and arm64 Distros have been shipping with CONFIG_STRICT_DEVMEM=y for years now. It is probably time to flip this default for x86 and arm64. Signed-off-by: Kees Cook Acked-by: Laura Abbott Cc: Andrew Morton Cc: Linus Torvalds Cc: Mark Rutland Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: kernel-hardening@lists.openwall.com Link: http://lkml.kernel.org/r/20171201201000.GA44539@beast Signed-off-by: Ingo Molnar --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 947d3e2..39b123d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1985,7 +1985,7 @@ config STRICT_DEVMEM bool "Filter access to /dev/mem" depends on MMU && DEVMEM depends on ARCH_HAS_DEVMEM_IS_ALLOWED - default y if TILE || PPC + default y if TILE || PPC || X86 || ARM64 ---help--- If this option is disabled, you allow userspace (root) access to all of memory, including kernel and userspace memory. Accidental