Skip to contentSkip to conversation

riscv: enable STRICT_DEVMEM by default

PATCH New Christoph Hellwig 1 participant 1 message Feb 22, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 riscv: enable STRICT_DEVMEM by default

No need to enable /dev/mem access on a new port.

---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig.debug +1 -1
index 6088408ef26c..b09caac31578 100644
@@ -1968,7 +1968,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 || X86 || ARM64
+	default y if TILE || PPC || X86 || ARM64 || RISCV
 	---help---
 	  If this option is disabled, you allow userspace (root) access to all
 	  of memory, including kernel and userspace memory. Accidental
Signature · 1 line
2.14.2