Commit 02c04aff authored by felix's avatar felix Committed by Felix Fu
Browse files

kaslr: add nokaslr memory region Kconfig support

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8TANP


CVE: NA

--------------------------------

add Kconfig NOKASLR_MEM_RANGE support. allow users to mark at
most 4 memory regions as unavailable for kaslr

Signed-off-by: default avatarFelix Fu <fuzhen5@huawei.com>
parent fe62a262
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2542,3 +2542,10 @@ config ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
# <asm/syscall_wrapper.h>.
config ARCH_HAS_SYSCALL_WRAPPER
	def_bool n

config NOKASLR_MEM_RANGE
	bool "Allow users to mark at most 4 memory regions as unavailable for kaslr"
	default n
	help
	  Say y here and add kernel parameters as nokaslr=nn[KMG]-ss[KMG] to avoid kaslr
	  place kernel image in such memory regions
 No newline at end of file