On Monday 07 March 2005 01:13 am, Rithin Shetty wrote: > Hi, > I have a question on the user mode stack. Why is the user mode stack > executable ? > I know one place where this is required: for trapping back to the kernel > after handling > a signal. Is this feature of the stack exploited anywhere else ? > Executable stack is used also by GCC (see trampolines). There is also a history regarding this: the i386 processors do not have an explicit execute bit to protect a page, although there is such a bit to protect a segment. However, Linux does not use segments due to portability reasons, so... tavi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/