panic_on_oops

file: /proc/sys/kernel/panic_on_oops
variable: kernel.panic_on_oops
Official reference

Controls the kernel’s behaviour when an oops or BUG is encountered.

0: try to continue operation

1: panic immediately. If the `panic’ sysctl is also non-zero then the machine will be rebooted.

source