
Offering: HULK hulk inclusion category: feature bugzilla: 189284 -------------------------------- add Kconfig NOKASLR_MEM_RANGE support. allow users to mark at most 4 memory regions as unavailable for kaslr Signed-off-by: felix <fuzhen5@huawei.com> Signed-off-by: Felix Fu <fuzhen5@huawei.com> --- init/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 69bd400daeb3..8db300661d03 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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 -- 2.34.1