From f1fe0a64dd532551b048d97b35473c25809f7a0f Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 27 May 2017 07:22:12 -0400 Subject: [PATCH] make DEFAULT_MMAP_MIN_ADDR match LSM_MMAP_MIN_ADDR Signed-off-by: Daniel Micay --- mm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index ab80933be65ff..5012bf12aab69 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -304,7 +304,8 @@ config KSM config DEFAULT_MMAP_MIN_ADDR int "Low address space to protect from user allocation" depends on MMU - default 4096 + default 32768 if ARM || (ARM64 && COMPAT) + default 65536 help This is the portion of low virtual memory which should be protected from userspace allocation. Keeping a user from writing to low pages