From mboxrd@z Thu Jan 1 00:00:00 1970 From: heiko.carstens@de.ibm.com (Heiko Carstens) Date: Mon, 23 Nov 2015 10:53:02 +0100 Subject: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug In-Reply-To: <20151122035702.9313.52457.stgit@dwillia2-desk3.jf.intel.com> References: <20151122035702.9313.52457.stgit@dwillia2-desk3.jf.intel.com> Message-ID: <20151123095302.GA4436@osiris> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, Nov 21, 2015 at 07:57:02PM -0800, Dan Williams wrote: > Let all the archs that implement CONFIG_STRICT_DEVM use a common > definition in lib/Kconfig.debug. > > Note, the 'depends on !SPARC' is due to sparc not implementing > devmem_is_allowed(). > > Cc: Kees Cook > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Benjamin Herrenschmidt > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Andrew Morton > Cc: Greg Kroah-Hartman > Cc: "David S. Miller" > Suggested-by: Arnd Bergmann > Signed-off-by: Dan Williams > --- > arch/arm/Kconfig.debug | 14 -------------- > arch/arm64/Kconfig.debug | 14 -------------- > arch/powerpc/Kconfig.debug | 12 ------------ > arch/s390/Kconfig.debug | 12 ------------ > arch/tile/Kconfig | 3 --- > arch/unicore32/Kconfig.debug | 14 -------------- > arch/x86/Kconfig.debug | 17 ----------------- > lib/Kconfig.debug | 19 +++++++++++++++++++ > 8 files changed, 19 insertions(+), 86 deletions(-) For s390 Acked-by: Heiko Carstens > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 8c15b29d5adc..ad85145d0047 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1853,3 +1853,22 @@ source "samples/Kconfig" > > source "lib/Kconfig.kgdb" > > +config STRICT_DEVMEM > + bool "Filter access to /dev/mem" > + depends on MMU > + depends on !SPARC > + default y if TILE || PPC || S390 I wouldn't mind if you would remove s390 from this list.