Except not (according to Linus) because Rust's Panic is not a valid situation to Kernel Panic.
I do think that the "run-time failure panic" is a fundamental issue.
this is simply fundamentally not acceptable.
With the main point of Rust being safety, there is no way I will ever accept "panic dynamically" (whether due to out-of-memory or due to anything else - I also reacted to the "floating point use causes dynamic panics") as a feature in the Rust model.
Buts that's besides the point. The quote is about OOM situations where rust panics by default. But this is solved already in the Linux fork with rust support, as it is using a custom allocation tailored for the Linux kernel dev with features enabled, where OOM panics are not happening implicitly anymore.
Did you not notice the part I quoted where he says "or due to anything else" and then mentions other specific examples?
And also how that's not really relevant to countering the argument of the person I was responding to who claimed rust's panic model panics in exactly the situations you want already.
6
u/Mason-B Jul 13 '22
Except not (according to Linus) because Rust's Panic is not a valid situation to Kernel Panic.