BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
Posted Sep 25, 2022 19:55 UTC (Sun) by Cyberax (✭ supporter ✭, #52523)Parent article: BPF as a safer kernel programming environment
Posted Sep 25, 2022 21:30 UTC (Sun)
by Subsentient (guest, #142918)
[Link] (3 responses)
Posted Sep 26, 2022 5:07 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link] (2 responses)
Posted Sep 26, 2022 14:33 UTC (Mon)
by ballombe (subscriber, #9523)
[Link] (1 responses)
Posted Sep 26, 2022 15:39 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link]
But it won't even be necessary, because WASM is used in a sandbox and works with the external world via well-defined accessors only. Just like eBPF for that matter.
Posted Sep 26, 2022 17:18 UTC (Mon)
by kid_meier (subscriber, #93987)
[Link] (4 responses)
I am ignorant of details myself but had the impression that BPF is designed to be (easily?) verifiable and maybe WASM is less suitable in this context.
Posted Sep 26, 2022 18:14 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link] (3 responses)
Posted Sep 28, 2022 11:13 UTC (Wed)
by foom (subscriber, #14868)
[Link] (2 responses)
Wasm doesn't do that. A wasm program is allowed to loop forever, or to abort.
Posted Sep 28, 2022 16:36 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link] (1 responses)
WASM programs can be suspended after a given number of instructions ("fuel"), at least if you're using the "wasmtime" runtime. This is essentially the same functionality. Moreover the "fuel" limits can be configured during the runtime so you can easily have different settings for different types of instrumentation.
> Wasm doesn't do that. A wasm program is allowed to loop forever, or to abort.
The only thing you really need to add to WASM is the "default value" that would be returned on termination or fuel exhaustion.
Posted Oct 6, 2022 21:53 UTC (Thu)
by njs (subscriber, #40338)
[Link]
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
