aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMattias Nissler <[email protected]>2023-02-15 14:48:28 +0000
committerPalmer Dabbelt <[email protected]>2023-02-21 17:21:45 -0800
commit130aee3fd9981297ff9354e5d5609cd59aafbbea (patch)
treec0e1d627a94dc85d95cca4dcd4c0899e3bebeae0 /scripts/generate_rust_analyzer.py
parent416721ff05fddc58ca531b6f069de250301de6e5 (diff)
riscv: Avoid enabling interrupts in die()
While working on something else, I noticed that the kernel would start accepting interrupts again after crashing in an interrupt handler. Since the kernel is already in inconsistent state, enabling interrupts is dangerous and opens up risk of kernel state deteriorating further. Interrupts do get enabled via what looks like an unintended side effect of spin_unlock_irq, so switch to the more cautious spin_lock_irqsave/spin_unlock_irqrestore instead. Fixes: 76d2a0493a17 ("RISC-V: Init and Halt Code") Signed-off-by: Mattias Nissler <[email protected]> Reviewed-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions