logoalt Hacker News

fweimeryesterday at 6:50 PM1 replyview on HN

I expect that UD2 stops instruction fetching (beyond the current block) and conversion to µops. A software interrupt or supervisor call should probably do neither because most of the time, these instructions eventually return and continue executing the next instruction.


Replies

rep_lodsbyesterday at 7:22 PM

An interrupt or SYSCALL instruction could do anything, which includes remapping or overwriting the memory location it returns to. So no, these instructions can't be prefetched in any case.