BPF as a safer kernel programming environment
BPF as a safer kernel programming environment
Posted Sep 26, 2022 18:14 UTC (Mon) by Cyberax (✭ supporter ✭, #52523)In reply to: BPF as a safer kernel programming environment by kid_meier
Parent article: BPF as a safer kernel programming environment
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
