From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751208AbdLAUql (ORCPT ); Fri, 1 Dec 2017 15:46:41 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33116 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbdLAUqk (ORCPT ); Fri, 1 Dec 2017 15:46:40 -0500 X-Google-Smtp-Source: AGs4zMb6vQhaNgnbKKxqF1x5WIGBo4dN6nAIEuDWdSxbyZ2n3afw8suo7WzplwES5iyo1baOvBoKkQ== Subject: Re: [PATCH] Kconfig: Make STRICT_DEVMEM default-y on x86 and arm64 To: Kees Cook , Andrew Morton Cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Mark Rutland , Will Deacon , x86@kernel.org References: <20171201201000.GA44539@beast> From: Laura Abbott Message-ID: <653e978c-5930-723d-001d-019868af29fd@redhat.com> Date: Fri, 1 Dec 2017 12:46:36 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171201201000.GA44539@beast> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/2017 12:10 PM, Kees Cook wrote: > Distros have been shipping with CONFIG_STRICT_DEVMEM=y for years now. It > is probably time to flip this default for x86 and arm64. > With my Fedora hat on, Acked-by: Laura Abbott Signed-off-by: Kees Cook > --- > lib/Kconfig.debug | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 947d3e2ed5c2..39b123d04a36 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 >