Re:Making WebAssembly better for Rust and for all languages
by pcwalton on Thursday March 15, 2018 @12:10AM
(#16590355)
RWX doesn't prevent ROP!
Re:Making WebAssembly better for Rust and for all languages
by andromeduck on Thursday March 15, 2018 @02:25PM
(#16595316)
Sure but I brought up rwx for their data execution point and g-free/indirect return for ROP mitigation.
Memory protection in terms of r/w/x been solved for at least about 3 decades now. It would be absolutely trivial to enforce via binary/IR distribution.
At the end of the day webasm is just a shitty IR that only exists because it's the path of least resistance on the web. There's really no point in going from lang-> llvm -> webasm -> llvm -> exec when you can just go from lang -> llvm -> asm.