I put experiments on Windows and encountered such a problem: in kernel mode, I execute the following code
mov esp, 0XXXXXXXXh ret
And on the mov command, the system crashes with the UNEXPECTED_KERNEL_MODE_TRAP error with the parameter 0x8 , which means Double Fault . In MSDN it is written that most often this is either an overflow of the kernel stack, or a hardware error. It is clear that the second is excluded.
I can not understand why the error occurs immediately in this place. I understand if it happened on the commands push , pop , etc. I hope that someone will tell me what the reason is and what to do. Thank.
retdoes? - Pavel Mayorovretcommand - Alexey SarovskymovI haveint3, respectively, in WinDbg I step by step. - Alexey Sarovsky