瀏覽代碼

arm64: kconfig: Move LIST_POISON to a safe value

Move the poison pointer offset to 0xdead000000000000, a
recognized value that is not mappable by user-space exploits.

Cc: <stable@vger.kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Jeff Vander Stoep 10 年之前
父節點
當前提交
bf0c4e0473
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/arm64/Kconfig

+ 4 - 0
arch/arm64/Kconfig

@@ -106,6 +106,10 @@ config NO_IOPORT_MAP
 config STACKTRACE_SUPPORT
 config STACKTRACE_SUPPORT
 	def_bool y
 	def_bool y
 
 
+config ILLEGAL_POINTER_VALUE
+	hex
+	default 0xdead000000000000
+
 config LOCKDEP_SUPPORT
 config LOCKDEP_SUPPORT
 	def_bool y
 	def_bool y