3 ms·
Exactly. A rust panic will call the panic_handler, implemented there: https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb8d7054b24b6c00de907819eb2/rust
by ogoffart 4y ago
Exactly.
A rust panic will call the panic_handler, implemented there:
https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb8d7054b24b6c00de907819eb2/rust/kernel/lib.rs#L263 https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb...
So accessing an array out of bound will have a runtime check that will call the panic handler, and that panic handler calls BUG() which means kernel panic.