Re: [PATCH] riscv: Enable interrupt during exception handling
From: Peter Zijlstra
Date: Tue Jun 24 2025 - 10:51:54 EST
On Tue, Jun 24, 2025 at 04:23:50PM +0200, Sebastian Andrzej Siewior wrote:
> On 2025-06-24 16:18:01 [+0200], Peter Zijlstra wrote:
> > I'm confused, sending signals is for exception from userspace. That has
> > nothing to do with exceptions from kernelspace being NMI like.
>
> Yes. See the original submission
> https://lore.kernel.org/linux-riscv/20250620114346.1740512-1-namcao@xxxxxxxxxxxxx/
I'm still confused, that code is trying to enable IRQs in the
from-kernel part. That's insane.
Can some Risc-V person explain why a from-kernel exception would ever
result in a signal?!?!