Messages in this thread | | | Subject | Re: Non-Exec stack patches | From | Andi Kleen <> | Date | 24 Mar 2004 18:49:21 +0100 |
| |
Jakub Jelinek <jakub@redhat.com> writes: > > Nope. Think about multithreaded apps. Furthermore, getting the exact > extents of the particular stack is difficult to find for applications, > but e.g. the threading library has to know such things.
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.
And cache a flag about this in a TLS variable.
-Andi - 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/
| |