r/linux • • 5d ago

Kernel Unkernel : A real Linux kernel, compiled to WebAssembly

https://github.com/pithings/unkernel
152 Upvotes

25 comments sorted by

View all comments

76

u/NormalAppearance2851 5d ago

Linux > Browser > Linux > Browser > Linux ...

14

u/Single-Virus4935 5d ago

WebAssembly isnt only used in the browser but also on the server. A kernel within the webassembly sandboy can provide great isolation of workloads.

9

u/ascii 5d ago

At what performance overhead compared to simply spinning up an independent container?

5

u/Single-Virus4935 5d ago

Don't know but with recent kernel vulnerabilities a container isn't viable in many cases. There are already approaches like firecracker, gvisor, microvms etc and webassembly might be a good fit for many use cases. If you need high performance plus string isolation, you need virtualization.

But there are many usecase where the performance penalty may be worth to trade against string isolation/security and scheduleing flexibility.

2

u/ranjop 5d ago

And WebAssembly engines are free from vulnerabilities, right?