ppc64 sbrk returns executable heap in 32-bit emulation mode

Florian Weimer fweimer at redhat.com
Mon May 16 18:59:00 AEST 2016


On 05/16/2016 10:49 AM, Andreas Schwab wrote:

>>  (If
>> I'm wrong about heap+stack needing the same protection then I can't
>> think of any reason to require an executable heap.)
>
> The heap and the BSS initially share the same page.

But my test says that at least part of .bss in the main executable is 
*not* executable.

Any ideas why the kernel behaves the way it does?  Can we change the 
behavior at least for ELF binaries which use glibc (or something else 
which indicates a non-legacy binary)?

Thanks,
Florian


More information about the Linuxppc-dev mailing list