correct clear_busy for shadow stack in case of IRET - should use old SSP
This commit is contained in:
parent
b373890b05
commit
0cfa33733e
@ -439,7 +439,7 @@ BX_CPU_C::long_iret(bxInstruction_c *i)
|
||||
bx_address prev_SSP = SSP;
|
||||
SSP = shadow_stack_restore(raw_cs_selector, cs_descriptor, new_rip);
|
||||
if (SSP != prev_SSP) {
|
||||
shadow_stack_atomic_clear_busy(SSP, CPL);
|
||||
shadow_stack_atomic_clear_busy(prev_SSP, CPL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user