|
|
|
|
|
by hegelstoleit
1356 days ago
|
|
1. As far as i'm aware there's no way to reliably catch all panics. catch_unwind does not catch all panics.
2. The whole point is that consequences of a panic are worse than the consequences of memory corruption. That's how the kernel was designed. There was an explicit design decision not to kernel panic in every situation where a logic error occurs. |
|
And I thought it was clear that kernel panic is different from Rust panic, which you don't seem to distinguish. Rust panic doesn't need to cause a kernel panic because it can be caught earlier.