Re: revert PIE randomization?

From: Marcus Meissner
Date: Sat Jan 06 2007 - 16:09:05 EST


On Sat, Jan 06, 2007 at 01:04:02PM -0800, Linus Torvalds wrote:
>
>
> On Sat, 6 Jan 2007, Hugh Dickins wrote:
> >
> > Isn't that randomization, anywhere from 0x10000 to ELF_ET_DYN_BASE,
> > sure to place the ET_DYN from time to time just where the comment says
> > it's trying to avoid? I assume that somehow results in the error reported.
>
> Hmm.. It's certainly the case that it would appear that the randomization
> might put the binary just under the heap, and cause conflicts with brk
> and the mmap heap.
>
> You're right. I'm inclined to just revert it, modulo some comments from
> others. Marcus?

After thinking about this, yes.

I would rather have a working range used here (perhaps like Hugh suggested),
but feel free to revert the original patch if you are not confident with it.

Ciao, Marcus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/