Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu,  2 Feb 2017 11:12:48 +0530
From: Bhupesh Sharma <>
	Bhupesh Sharma <>,
	Alexander Graf <>,
	Benjamin Herrenschmidt <>,
	Paul Mackerras <>,
	Anatolij Gustschin <>,
	Alistair Popple <>,
	Matt Porter <>,
	Vitaly Bordug <>,
	Scott Wood <>,
	Kumar Gala <>,
	Daniel Cashman <>
Subject: [PATCH 2/2] powerpc: Redefine ELF_ET_DYN_BASE

Currently the powerpc arch uses a ELF_ET_DYN_BASE value of 0x20000000
which ends up pushing an elf to a load address which is 32-bit.

On 64-bit platforms, this might be too less especially when one is
trying to increase the randomness of the load address of the ASLR elfs
on such platforms.

This patch makes the powerpc platforms mimic the x86 ones, by ensuring
that the ELF_ET_DYN_BASE is calculated on basis of the current task's

Cc: Alexander Graf <>
Cc: Benjamin Herrenschmidt <>
Cc: Paul Mackerras <>
Cc: Michael Ellerman <>
Cc: Anatolij Gustschin <>
Cc: Alistair Popple <>
Cc: Matt Porter <>
Cc: Vitaly Bordug <>
Cc: Scott Wood <>
Cc: Kumar Gala <>
Cc: Daniel Cashman <>
Cc: Kees Cook <>
Signed-off-by: Bhupesh Sharma <>
 arch/powerpc/include/asm/elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/elf.h b/arch/powerpc/include/asm/elf.h
index ee46ffef608e..dd035f6dd782 100644
--- a/arch/powerpc/include/asm/elf.h
+++ b/arch/powerpc/include/asm/elf.h
@@ -28,7 +28,7 @@
    the loader.  We need to make sure that it is out of the way of the program
    that it will "exec", and that there is sufficient room for the brk.  */
-#define ELF_ET_DYN_BASE	0x20000000
 #define ELF_CORE_EFLAGS (is_elf2_task() ? 2 : 0)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.