Skip to content
Commit 92980405 authored by Arun Chandran's avatar Arun Chandran Committed by Catalin Marinas
Browse files

arm64: ASLR: Don't randomise text when randomise_va_space == 0



When user asks to turn off ASLR by writing "0" to
/proc/sys/kernel/randomize_va_space there should not be
any randomization to mmap base, stack, VDSO, libs, text and heap

Currently arm64 violates this behavior by randomising text.
Fix this by defining a constant ELF_ET_DYN_BASE. The randomisation of
mm->mmap_base is done by setup_new_exec -> arch_pick_mmap_layout ->
mmap_base -> mmap_rnd.

Signed-off-by: default avatarArun Chandran <achandran@mvista.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent e2b6b35e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment