Re:Nebulet: A microkernel that runs WebAssembly in Ring 0
by andreiw on Wednesday May 30, 2018 @02:22PM
(#17190168)
Depends on how you define hardware and software. There are global workarounds that amount to crippling CPU behavior, to provide guarantees for code not written to be spectre safe. I guess that’s what you mean by “hardware”. But “software” approaches are localized mitigations to code written to avoid spectre attacks - and these localized mitigations use arch specific sequences to do so.
Re:Nebulet: A microkernel that runs WebAssembly in Ring 0
by microcolonel on Wednesday May 30, 2018 @09:33PM
(#17193311)
Another major problem with the software level mitigations is that they cost considerably more. Speculation fences cut performance to a small integer fraction of prior performance.
Re:Nebulet: A microkernel that runs WebAssembly in Ring 0
by andreiw on Thursday May 31, 2018 @05:07PM
(#17200286)
Then tell your SiP to do better.
On Arm the conditional speculation barrier couldn’t be more lightweight (CSDB).
Re:Nebulet: A microkernel that runs WebAssembly in Ring 0
by pjmlp on Wednesday May 30, 2018 @03:23PM
(#17190836)
Process-based sandboxing was too heavy in old hardware systems, but on modern ones is the best approach.
Threads and plugins have proven not to be the best ideas regarding implementing safe systems.
Re:Nebulet: A microkernel that runs WebAssembly in Ring 0
by microcolonel on Wednesday May 30, 2018 @09:32PM
(#17193310)
> Process-based sandboxing was too heavy in old hardware systems, but on modern ones is the best approach.
They actually started first with full process isolation, then realized that it had an outsize impact on performance, and now they're going back because the consequences for security are now known. There have been spectre-related patches going into chromium and v8 for the last few months, and they just keep coming, it's hard to overstate how much work must be done to have a decent probability of not being exposed to the known variants of these bugs in a software isolated system.
So much so that Chrome is giving up on software-isolation entirely and is rolling out even more process-based sandboxing https://www.chromium.org/Home/chromium-security/site-isolati...