Exceptions in BPF
Exceptions in BPF
Posted Jul 22, 2023 1:30 UTC (Sat) by walters (subscriber, #7396)Parent article: Exceptions in BPF
> A Rust program will, by default, panic if any of a large number of things goes wrong
I don’t think so. If you’re talking about Rust code using std certainty there can be a lot of implicit OOM panics. But kernel Rust doesn’t use std.
Idiomatic Rust avoids gratuitous unwrap invocations and array accesses, etc. Iterators can often remove implicit bounds checks too. Now, writing probably panic-free code is an active topic.
But I don’t think “if any of a large number of things” is really accurate, on balance.
