Thread (4 messages) flat view 4 messages, 2 authors, 2016-05-16

Re: ppc64 sbrk returns executable heap in 32-bit emulation mode

From: Florian Weimer <hidden>
Date: 2016-05-16 16:27:28

On 05/16/2016 11:09 AM, Andreas Schwab wrote:
Florian Weimer [off-list ref] writes:
quoted
But my test says that at least part of .bss in the main executable is
*not* executable.
Build with -mbss-plt -Wl,--bss-plt.
This gives me:

   FAIL exec  .bss data (unexpected result)
   FAIL exec  .data (unexpected result)
   FAIL exec  malloc (small) (unexpected result)
   FAIL exec  malloc (page size) (unexpected result)

And this is somewhat expected: There is an RWX LOAD segment which covers 
.bss and .data, and it also overlaps with the heap.

So maybe we can change the kernel heap default in case there is no RWX 
LOAD segment, so that most binaries get a non-executable heap?  What do 
you think?

Thanks,
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help