]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER
authorMarc Zyngier <maz@kernel.org>
Tue, 14 Apr 2020 14:10:08 +0000 (15:10 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 15 Apr 2020 13:56:14 +0000 (14:56 +0100)
commitbddb5939bd0dd28aa7fdde3686201f0ca2cf622e
tree1590d1bf3f643583a04cdb771b4202f5bb4a10c0
parent0e6c92ce1d170795a396f8108369eb2c8412797f
KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER

When deciding whether a guest has to be stopped we check whether this
is a private interrupt or not. Unfortunately, there's an off-by-one bug
here, and we fail to recognize a whole range of interrupts as being
global (GICv2 SPIs 32-63).

Fix the condition from > to be >=.

Cc: stable@vger.kernel.org
Fixes: 1a2b9b8b4292e ("KVM: arm/arm64: Simplify active_change_prepare and plug race")
Reported-by: André Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
virt/kvm/arm/vgic/vgic-mmio.c