Re: Non-Exec stack patches
From: Jakub Jelinek
Date: Wed Mar 24 2004 - 12:56:07 EST
On Wed, Mar 24, 2004 at 06:49:21PM +0100, Andi Kleen wrote:
> It's actually not that difficult. You just have to read /proc/self/maps
> and check for the mapping of your current stack pointer.
> For the main stack GROWSDOWN will inherit the x or nx on growing
That assumes there are always gaps around thread stacks, which doesn't
have to be true. You could make executable some other mapping
as well easily.
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/