Re: [PATCH] binfmt_elf: fix PIE load with randomization disabled

From: H. Peter Anvin
Date: Mon Dec 09 2013 - 16:49:29 EST


>
>> PT_LOAD being non-zero causing randomization to be turned off seems like
>> quite unexpected behavior to me, with a great potential to cause a lot of
>> confusion.
>
> There should be no difference between dynamic executable and PIE
> with non-zero vaddr when choosing where to load them.
>

Why is that? It would seem to be a big difference between a relocatable
binary (PIE) and one with a load address fixed at link time.

-hpa

--
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/