mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix CONFIG_IO_STRICT_DEVMEM, do not enable by default
@ 2016-01-20 22:37 Dan Williams
  2016-01-20 23:12 ` Kees Cook
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Williams @ 2016-01-20 22:37 UTC (permalink / raw)
  To: torvalds
  Cc: Russell King, Kees Cook, Arnd Bergmann, Greg Kroah-Hartman,
	linux-kernel, Ingo Molnar, Andrew Morton, Larry Finger

Larry reports: "My PowerBook G4 Aluminum with a 32-bit PPC processor
fails to boot for the 4.4-git series".  This is likely due to X still
needing /dev/mem access on this platform.

CONFIG_IO_STRICT_DEVMEM is not yet safe to turn on when
CONFIG_STRICT_DEVMEM=y.  Remove the default so that old configurations
do not change behavior.

Fixes: 90a545e98126 ("restrict /dev/mem to idle io memory ranges")
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: http://marc.info/?l=linux-kernel&m=145332012023825&w=2
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 lib/Kconfig.debug |    1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index f75a33f29f6e..7d0b49c536c5 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1919,7 +1919,6 @@ config STRICT_DEVMEM
 config IO_STRICT_DEVMEM
 	bool "Filter I/O access to /dev/mem"
 	depends on STRICT_DEVMEM
-	default STRICT_DEVMEM
 	---help---
 	  If this option is disabled, you allow userspace (root) access to all
 	  io-memory regardless of whether a driver is actively using that

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-20 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20 22:37 [PATCH] fix CONFIG_IO_STRICT_DEVMEM, do not enable by default Dan Williams
2016-01-20 23:12 ` Kees Cook
2016-01-20 23:48   ` Dan Williams
2016-01-20 23:53     ` Kees Cook
2016-01-20 23:57       ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®