Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1275650
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug |
| Date | 2015-11-23 18:20 +0100 |
| Message-ID | <qy2Wu-4QZ-5@gated-at.bofh.it> (permalink) |
| References | <qxtYK-6Ax-5@gated-at.bofh.it> <qxW4H-8tT-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Nov 23, 2015 at 1:53 AM, Heiko Carstens <heiko.carstens@de.ibm.com> wrote: > 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 <keescook@chromium.org> >> Cc: Russell King <linux@arm.linux.org.uk> >> Cc: Catalin Marinas <catalin.marinas@arm.com> >> Cc: Will Deacon <will.deacon@arm.com> >> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> >> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> >> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> >> Cc: Thomas Gleixner <tglx@linutronix.de> >> Cc: Ingo Molnar <mingo@redhat.com> >> Cc: "H. Peter Anvin" <hpa@zytor.com> >> Cc: Andrew Morton <akpm@linux-foundation.org> >> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >> Cc: "David S. Miller" <davem@davemloft.net> >> Suggested-by: Arnd Bergmann <arnd@arndb.de> >> Signed-off-by: Dan Williams <dan.j.williams@intel.com> >> --- >> 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 <heiko.carstens@de.ibm.com> > >> 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. > Will do. Thanks. -- 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Dan Williams <dan.j.williams@intel.com> - 2015-11-22 05:00 +0100
[PATCH 2/2] restrict /dev/mem to idle io memory ranges Dan Williams <dan.j.williams@intel.com> - 2015-11-22 05:00 +0100
Re: [PATCH 2/2] restrict /dev/mem to idle io memory ranges Kees Cook <keescook@chromium.org> - 2015-11-23 20:10 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Ingo Molnar <mingo@kernel.org> - 2015-11-23 09:20 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Dan Williams <dan.j.williams@intel.com> - 2015-11-23 18:20 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Kees Cook <keescook@chromium.org> - 2015-11-23 20:00 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Ingo Molnar <mingo@kernel.org> - 2015-11-24 09:30 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-11-23 11:00 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Dan Williams <dan.j.williams@intel.com> - 2015-11-23 18:20 +0100
Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Catalin Marinas <catalin.marinas@arm.com> - 2015-11-23 11:20 +0100
csiph-web