summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2017-11-01 15:10:12 -0700
committerGreg Hackmann <ghackmann@google.com>2017-11-02 19:12:03 +0000
commite080c59bfb7cf2e0498883d352c9053e5f2bf960 (patch)
tree70ef0cd39afb03f477d1e3df7806a5f8affdbd84 /arch
parent05aa89aa8402ae319108731770a6c7d23f88c431 (diff)
ANDROID: Revert "arm64: move ELF_ET_DYN_BASE to 4GB / 4MB"
Part of the above change was reverted in 240628085effc47e86f51fc3fb37bc0e628f9a85; this change reverts the rest. This ARM mmap change breaks AddressSanitizer: Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING. Revert it until ASAN runtime library is updated to handle it. Bug: 67425063
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/include/asm/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h
index cd3dfa346649..f9d64ed4fd2b 100644
--- a/arch/arm64/include/asm/elf.h
+++ b/arch/arm64/include/asm/elf.h
@@ -169,7 +169,7 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
#ifdef CONFIG_COMPAT
/* PIE load location for compat arm. Must match ARM ELF_ET_DYN_BASE. */
-#define COMPAT_ELF_ET_DYN_BASE 0x000400000UL
+#define COMPAT_ELF_ET_DYN_BASE (2 * TASK_SIZE_32 / 3)
/* AArch32 registers. */
#define COMPAT_ELF_NGREG 18