[PATCH] RISC-V: KVM: Skip IMSIC update if vCPU IMSIC state is not initialized

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Thu Feb 19 20:10:45 PST 2026


Hello:

This patch was applied to riscv/linux.git (fixes)
by Anup Patel <anup at brainfault.org>:

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





More information about the linux-riscv mailing list