summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorArun Chandran <achandran@mvista.com>2014-10-10 12:31:24 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2014-10-24 15:47:49 +0100
commit92980405f3537136b8e81007a9df576762f49bbb (patch)
treea40d98e18e154c3d04e673842864812e14425c08 /init
parente2b6b35ee77522c2e15e770aded0b05c25ca0616 (diff)
downloadop-kernel-dev-92980405f3537136b8e81007a9df576762f49bbb.zip
op-kernel-dev-92980405f3537136b8e81007a9df576762f49bbb.tar.gz
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: Arun Chandran <achandran@mvista.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud