[PATCH] Allow exec on 32-bit from readable, non-exec pages, with a warning.
Segher Boessenkool
segher at kernel.crashing.org
Tue Jul 10 23:11:16 EST 2007
> In older versions of glibc (through 2.3), the dynamic linker
> executes a
> small amount of code from the data segment, which is not marked as
> executable. A recent change (commit
> 9ba4ace39fdfe22268daca9f28c5df384ae462cf)
> stops this from working; there should be a deprecation period before
> older glibc versions stop working.
>
> The problem has been observed on glibc 2.2. While glibc 2.3 has
> the same
> code, I did not see the problem; it may be that it accesses the
> page in
> question as data before executing from it, and thus it is already
> mapped.
>
> Signed-off-by: Scott Wood <scottwood at freescale.com>
Acked-by: Segher Boessenkool <segher at kernel.crashing.org>
> Unfortunately, this didn't make it into 2.6.22, but it should
> probably go
> into the stable branch...
Both .21.x and .22.x I suppose; if we care about glibc 2.2.x
at all still, that is.
So to make double sure, this doesn't warn on glibc 2.3.x?
Segher
More information about the Linuxppc-dev
mailing list