Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbcJJCpg (ORCPT ); Sun, 9 Oct 2016 22:45:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54174 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbcJJCpf (ORCPT ); Sun, 9 Oct 2016 22:45:35 -0400 Date: Mon, 10 Oct 2016 10:44:36 +0800 From: Dave Young To: Greg Kroah-Hartman Cc: Arnd Bergmann , Kees Cook , linux-kernel@vger.kernel.org Subject: Re: Change CONFIG_DEVKMEM default value to n Message-ID: <20161010024436.GA3169@dhcp-128-65.nay.redhat.com> References: <20161007020411.GB9052@dhcp-128-65.nay.redhat.com> <20161007035719.GB17183@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161007035719.GB17183@kroah.com> User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 10 Oct 2016 02:44:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 40 On 10/07/16 at 05:57am, Greg Kroah-Hartman wrote: > On Fri, Oct 07, 2016 at 10:04:11AM +0800, Dave Young wrote: > > Kconfig comment suggests setting it as "n" if in doubt thus move the > > default value to 'n'. > > > > Signed-off-by: Dave Young > > Suggested-by: Kees Cook > > --- > > drivers/char/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > --- linux-x86.orig/drivers/char/Kconfig > > +++ linux-x86/drivers/char/Kconfig > > @@ -17,7 +17,7 @@ config DEVMEM > > > > config DEVKMEM > > bool "/dev/kmem virtual device support" > > - default y > > + default n > > If you remove the "default" line, it defaults to 'n'. I personally perfer a "default n", but I can update it.. > > And is it really "safe" to default this to n now? There is an old article here: https://lwn.net/Articles/147901/ AFAIK Distributions like Fedora/Debian has disabled it for long time. If one really need it he can still enable it in his own config file. > > thanks, > > greg k-h Thanks Dave