3 ms·
Work is being done to get rid of fallible code, such as allocations: https://www.theregister.com/2021/07/05/rust_for_linux_kernel_project/ https://www.theregist
by _flux 5y ago
Work is being done to get rid of fallible code, such as allocations: https://www.theregister.com/2021/07/05/rust_for_linux_kernel_project/ https://www.theregister.com/2021/07/05/rust_for_linux_kernel...
Anyway, I don't see paniccing as something a Linux kernel must never ever do. After all, we are all familiar with kernel oopses and panics, so clearly the existing body code already does it some situations. Just have the Rust code do that, if it wasn't its current behavior.
One can argue Rust is one way to get rid of those panics/oops by e.g. statically guaranteeing a pointer is not null after a certain point.