Re: [PATCH] RISC-V: KVM: Skip IMSIC update if vCPU IMSIC state is not initialized
From: patchwork-bot+linux-riscv
Date: Thu Feb 19 2026 - 23:12:31 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Anup Patel <anup@xxxxxxxxxxxxxx>:
On Tue, 27 Jan 2026 08:43:13 +0000 you wrote:
> kvm_riscv_vcpu_aia_imsic_update() assumes that the vCPU IMSIC state has
> already been initialized and unconditionally accesses imsic->vsfile_lock.
> However, in fuzzed ioctl sequences, the AIA device may be initialized at
> the VM level while the per-vCPU IMSIC state is still NULL.
>
> This leads to invalid access when entering the vCPU run loop before
> IMSIC initialization has completed.
>
> [...]
Here is the summary with links:
- RISC-V: KVM: Skip IMSIC update if vCPU IMSIC state is not initialized
https://git.kernel.org/riscv/c/003b9dae53ae
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html