logoalt Hacker News

ngneer01/21/20250 repliesview on HN

If compilation uses jmp2ret mitigation, a trailing ret instruction will be replaced by a jmp to a return thunk. It is up to the return thunk to do as it pleases with program state.