Skip to content
Commit e582b7a3 authored by Marc Zyngier's avatar Marc Zyngier Committed by Paul Gortmaker
Browse files

KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER



commit 1c32ca5d upstream.

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: abd72296 ("KVM: arm/arm64: Simplify active_change_prepare and plug race")
Reported-by: default avatarAndré Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent f9ed0111
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment