Preventing stack guard-page hopping
Preventing stack guard-page hopping
Posted Jun 20, 2017 15:08 UTC (Tue) by nybble41 (subscriber, #55106)In reply to: Preventing stack guard-page hopping by nix
Parent article: Preventing stack guard-page hopping
That is... diabolical. Genius, but diabolical. A similar concept employed by Chicken Scheme is to start out the same way, using CPS and allocating on the C stack, but then after copying the live data to the heap just perform a longjmp() to unwind back to a trampoline function at the top of the original stack. That seems slightly saner than abusing alloca() to set the stack pointer.
Posted Jun 21, 2017 11:26 UTC (Wed)
by nix (subscriber, #2304)
[Link] (1 responses)
Posted Jun 21, 2017 14:41 UTC (Wed)
by zblaxell (subscriber, #26385)
[Link]
...like some eager tools maintainer implementing alloca() parameter sanity checks, perhaps? ;)
Preventing stack guard-page hopping
Preventing stack guard-page hopping