Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6342/1: fix ASLR of PIE executables

Since commits 990cb8acf2 and cc92c28b2d, it is possible to have full
address space layout randomization (ASLR) on ARM. Except that one small
change was missing for ASLR of PIE executables.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Nicolas Pitre and committed by
Russell King
e4eab08d 01723a95

+1 -1
+1 -1
fs/binfmt_elf.c
··· 800 800 * default mmap base, as well as whatever program they 801 801 * might try to exec. This is because the brk will 802 802 * follow the loader, and is not movable. */ 803 - #ifdef CONFIG_X86 803 + #if defined(CONFIG_X86) || defined(CONFIG_ARM) 804 804 load_bias = 0; 805 805 #else 806 806 load_bias = ELF_PAGESTART(ELF_ET_DYN_BASE - vaddr);