Better HN
topnewbestaskshowjobs
Log inSign up

describrion

33 karma · joined Dec 31, 2017 (8y ago) · 3 submissions

Submissions

comment 8y ago · link · parent

This is an irritating comment, I don't understand some people's urge to disparage others' research even at the expense of rationality.

Even modern Intel and AMD processors are "RISC" under the hood - they decompose CISC x86 instructions into RISC micro-ops, this isn't a VIA phenomenon. But they DON'T open up access to their microcode to some arbitrary user letting you circumvent ring protections to access the kernel from ring 3. If they did that would be a - wait for it - backdoor.

comment 8y ago · link · parent

That's not quite true... the code (essentially) loops over itself infinitely; the only branch is a loop back to the beginning of the program. Since this branch has only one target, it can be a direct jump (as opposed to an indirect one), meaning it would not use the branch trace buffer, and would not cause speculative execution. The author used faulting for branches only to write the program in all mov instructions; if the last 'mov' is replaced with a direct jmp (which, it looks like, can be done with the --no-mov-loop flag to the compiler), no more speculative execution.

comment 8y ago · link · parent

Except, that wasn't at all the point of this presentation...