Re: [PROPOSAL/PATCH] Remove PT_GNU_STACK support before 2.6.11

From: Ingo Molnar
Date: Sun Feb 06 2005 - 09:10:18 EST


* Andi Kleen <ak@xxxxxxx> wrote:

> > RWE. But if it triggers it shows up immediately so it's not like you
> > have no sign that something wrong is going on. Only grub-install
> > triggers it and no boot/install kernel i know of defaults to
> > PAE-enabled, that's what caused grub-install being used in an NX
> > scenario so infrequently.)
> >
> > anyway, this particular flamewar might have made more sense last Summer.
>
> Last summer nobody did change the 32bit ABI on x86-64.
>
> I only started it because the bug reports are appearing now and it's
> clear now that we have a problem.

the vanilla 2.6.10 x64 kernel, using 32-bit fedora userland boots fine
here, and gives a noexec stack:

$ ./test-stack
Segmentation fault
$
$ uname -a
Linux saturn 2.6.10 #1 Sun Feb 6 15:52:44 CET 2005 x86_64 x86_64 x86_64 GNU/Linux
$
$ readelf -l test-stack | grep STA
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4

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