浏览代码

Merge branch 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull STRICT_DEVMEM default from Ingo Molnar:
 "Make CONFIG_STRICT_DEVMEM default-y on x86 and arm64 as well, to
  follow the distro status quo"

* 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  Kconfig: Make STRICT_DEVMEM default-y on x86 and arm64
Linus Torvalds 7 年之前
父节点
当前提交
c1488798ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Kconfig.debug

+ 1 - 1
lib/Kconfig.debug

@@ -1952,7 +1952,7 @@ config STRICT_DEVMEM
 	bool "Filter access to /dev/mem"
 	bool "Filter access to /dev/mem"
 	depends on MMU && DEVMEM
 	depends on MMU && DEVMEM
 	depends on ARCH_HAS_DEVMEM_IS_ALLOWED
 	depends on ARCH_HAS_DEVMEM_IS_ALLOWED
-	default y if TILE || PPC
+	default y if TILE || PPC || X86 || ARM64
 	---help---
 	---help---
 	  If this option is disabled, you allow userspace (root) access to all
 	  If this option is disabled, you allow userspace (root) access to all
 	  of memory, including kernel and userspace memory. Accidental
 	  of memory, including kernel and userspace memory. Accidental