Re: Non-Exec stack patches

From: David Mosberger
Date: Tue Mar 23 2004 - 19:40:46 EST


>>>>> On Wed, 24 Mar 2004 01:21:49 +0100, Kurt Garloff <garloff@xxxxxxx> said:

>> Which architectures are currently making their pre-page execute
>> permissions depend upon VM_EXEC? Would additional arch patches
>> be needed for this?

Kurt> It works on AMD64 (not ia32e), both for 64bit and 32bit
Kurt> binaries. I have not yet tested other archs.

IA64 Linux had non-executable stack/data before PT_GNU_STACK was invented.
It's keyed off a ELF header flags bit:

/* Least-significant four bits of ELF header's e_flags are
OS-specific. The bits are interpreted as follows by Linux: */
#define EF_IA_64_LINUX_EXECUTABLE_STACK 0x1

I guess I never quiet understood why an entire program header is
needed for this, but that's just me.

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