6 ms·
This is the kind of weird (ab)use of floating point instructions that I can imagine some DRM solution using as a means to obfuscate a VM of some kind. The next
by jeroenhd 3y ago
This is the kind of weird (ab)use of floating point instructions that I can imagine some DRM solution using as a means to obfuscate a VM of some kind.
The next step would be to use these properties to write a compiler to run normal source code as floating point integers, maybe with some kind of FFI to call regular OS APIs.
- legobmw99 3y agoKind of like https://github.com/xoreaxeaxeax/movfuscator https://github.com/xoreaxeaxeax/movfuscator
- bonzini 3y agoA lot more like https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i... The mov trick is akin to OISC, the "one instruction set computer". Here instead it's building logic circuits.
- deleted 3y ago[deleted]
- LukeShu 3y agoYou may be interested in - Using IEEE floating-point error for ML transfer functions http://tom7.org/grad/ http://tom7.org/grad/ - Using IEEE NaN and infinity to build logic gates and a whole CPU http://tom7.org/nand/ http://tom7.org/nand/
- bakuninsbart 3y agoSecond one is possibly my favourite YouTube video of all time.
- kibwen 3y agoI'm certain that at least 20% of all the people who clicked on this comments section did so specifically to post this link.
- teaearlgraycold 3y agoOne day as we were getting coffee a coworker just casually drops that his buddy from school made some programs called learnfun and playfun for a YouTube video (which is my favorite Tom7 video). Tech is a surprisingly small world.
- jeroenhd 3y agoThose were great, thanks for linking them!
- FreakLegion 3y agoA variation of this has been done using Intel MMU fault handling. Behold: https://github.com/jbangert/trapcc https://github.com/jbangert/trapcc This is a proof by construction that the Intel MMU's fault handling mechanism is Turing complete. We have constructed an assembler that translates 'Move, Branch if Zero, Decrement' instructions to C source that sets up various processor control tables. After this code has executed, the CPU computes by attempting to fault without ever executing a single instruction. Optionally, the assembler can also generate X86 instructions that will display variables in the VGA frame buffer and will cause control to be transferred between the native (display) instructions and 'weird machine' trap instructions.
- jeroenhd 3y agoThat's amazing, I love it!