There's more to switching stacks than just loading a new stack pointer
Sometimes people think they can switch stacks by just loading a new value into the register. This may seem to work but in fact it doesn't, because there is more to switching stacks than just loading a new value into . On the x86, the exception chain is threaded through the stack, and the exception dispatch code verifies that the exception chain...