Re: Linux kernel patch to remove stack exec permission

Stefan Monnier (monnier+/news/lists/linux/kernel@TEQUILA.SYSTEMSZ.CS.YALE.EDU)
15 Apr 1997 21:22:40 -0400


Raul Miller <rdm@rdm.legislate.com> writes:
> Mike Meissner:
> > You can't use malloc'ed storage for the trampoline, since a longjmp
> > would not free the allocated blocks.
> Unless you re-engineered longjmp and nested functions to use cleanups
> (along the lines of gdb internals).

It also has the disadvantage of using malloc, which adds one more dependency
between gcc and the C library. (I don't even consider the slowdown of longjmp
even for code that doesn't use trampolines).


Stefan