Messages in this thread | | | Date | Wed, 24 Mar 2004 12:54:02 -0500 | From | Jakub Jelinek <> | Subject | Re: Non-Exec stack patches |
| |
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 > down.
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.
Jakub - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |