3 ms·
Ok I don't understand the reasoning behind why this is safe... The explanation is pretty sparse.
by exabrial 8y ago
Ok I don't understand the reasoning behind why this is safe... The explanation is pretty sparse.
- als0 8y agoAbout as safe as other managed languages...the security here is dependent on how well implemented the sandbox is.
- jerf 8y agoI don't see how to square "makes essentially arbitrary syscalls so we can run faster than Linux code" and "is safe". WebAssembly is not Platonically safe; it's safe for specific reasons. If you bind syscalls into it, or more generally, bind anything that allows you to do what syscalls do in an OS, you're going to be poking holes in its safety at a distressing pace, because you're taking some of the reasons WebAssembly is safe, and throwing them away. It may be memory safe, but honestly, memory-safety is no great trick anymore... pretty much everything except the languages currently used to implement kernels is memory safe. Memory safe is still not "generally safe".
- simen 8y agoIt all depends on how safe the OS software sandbox is. Which is something that recent HW vulnerabilities really has emphasized even if you're not running in ring0. And it's not like this is a new idea: as mentioned, Microsoft already built a research OS on this idea. Personally, I say more power to this high schooler. It's just a research project, and it'll be interesting to see where it goes. Nobody is suggesting you replace Linux/OSX/Windows with this thing anytime soon.
- ratmice 8y agoEven before MS, there was UW/spin os, on the language modula-3, in the mid-90s http://www-spin.cs.washington.edu/ http://www-spin.cs.washington.edu/
- jchw 8y agoThe language is memory safe, so it is theoretically limited to the surface area that the non-memory-safe OS libraries allow. Of course, that is assuming there are no exploits in the WebAssembly compiler, and no exploits in the OS libraries. Access to syscalls would not be unusual in any case. This is the normal attack surface for an OS. The new attack surface is the WebAssembly compiler and checker. To be honest though, given the processor vulnerabilities that have come about, I don't know if I really feel so bad about software protections like this anymore. Nothing is a panacea, even magical processor protection rings.
- gnode 8y agoI think in light of recent processor bugs, there's also an argument that software protection is easier to patch than hardware protection.