Pass stack frame pointer instead of context pointer. Require all threads invoking Kos functions to be registered. KOS_get_stack_frame() invoked to obtain a stack frame pointer should take care of ...
We can further mitigate detection of a corrupt return pointer with a more unpredictable transformation of the return pointer. We have the option of encrypting part of the stack frame when the window ...