Use the correct add instruction when popping CS.

This commit is contained in:
4lDO2
2021-02-15 20:02:35 +01:00
parent 2a9b7a0fc8
commit c19581282d

View File

@@ -112,7 +112,7 @@ function!(syscall_instruction => {
// Otherwise, continue with the fast sysretq.
sub rsp, 8 // Pop fake userspace CS
add rsp, 8 // Pop fake userspace CS
pop r11 // Pop rflags
pop QWORD PTR gs:[0x70] // Pop userspace stack pointer
mov rsp, gs:[0x70] // Restore userspace stack pointer