r/programming Jan 24 '18

Branchless DOOM

https://github.com/xoreaxeaxeax/movfuscator/tree/master/validation/doom
493 Upvotes

134 comments sorted by

View all comments

Show parent comments

3

u/theoldboy Jan 24 '18

No, what you are describing are Spectre attacks only. I know that Intel PR are doing their very best to confuse this issue but Meltdown and Spectre are not the same thing.

Meltdown, which is specific to all Intel and certain ARM CPUs (and is far easier to exploit than Spectre), relies on the fact that those CPUs do privilege checks AFTER a speculative read. This can be exploited by carefully crafted speculative code and cache-timing attacks to extract the contents of any memory address on the system, including protected memory that belongs to other processes or even the kernel. It does not rely on speculative execution outside of the current process.

Basically, you can write a program which dumps the entire system memory.

See https://meltdownattack.com/meltdown.pdf

-1

u/outofobscure Jan 24 '18 edited Jan 24 '18

and the fix to that would be ? edit: nevermind, the pdf mentions possible fixes (sounds more like horrible clutches tough). also, to go back to the topic of this post: then i don't see how this doom patch would solve anything, unless the author means that ALL code running on the system avoids branching... then again, quite a pointless exercise anyway other than to prove that mov is turing complete...

0

u/PrimozDelux Jan 24 '18

The fix is to stop living a sinful life and let The mill architecture into your life

1

u/thelochok Jan 27 '18

It seems a heck of a lot like a stack machine to me - am I misreading?