Unofficial Hacker News companion — get notified on comment replies, and more.

Unkernel: Real Linux kernel, compiled to WebAssembly (opens external site)

622 points by nreece 5 days ago | unkernel.dev | 172 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. > I’m not convinced hypervisors are going away because they present a far smaller attack surface than a JIT Wasm runtime.

    The attack surface for VMs in the kernel is quite large - the whole KVM system and related qemu/other VMM functionality (user space drivers of all sorts etc).

    Yes a JIT Wasm runtime is not ideal but wasm in general is very robust and safe. Before a module is added to the rest of the wasm/javascript code, it is validated by a wasm checker. If is is malformed in any way it will be rejected

    Replies (1)
    1. KVM plus a minimal hypervisor is still an order of magnitude smaller than something like wasmtime though. The risk is not so much malformed Wasm/javascript code but the risk of exploiting miscompilation by the JIT. Wasm interpreters are much smaller and safer but much, much slower.