[PATCH] riscv: Avoid enabling interrupts in die()

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Wed Feb 22 07:00:22 PST 2023


Hello:

This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at rivosinc.com>:

On Wed, 15 Feb 2023 14:48:28 +0000 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - riscv: Avoid enabling interrupts in die()
    https://git.kernel.org/riscv/c/130aee3fd998

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list