]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic-v3: Fix off-by-one LR access
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 10 Apr 2017 09:19:44 +0000 (10:19 +0100)
committerChristoffer Dall <cdall@linaro.org>
Wed, 19 Apr 2017 15:28:38 +0000 (17:28 +0200)
commit7da7f11719167eb20f59cd73a5921d2922a9898b
treef039d5228ca40d77bfb8e292e61f07d97c7f8f89
parenta1094dc59631bb2d4abcc45e27389628dee836c8
KVM: arm/arm64: vgic-v3: Fix off-by-one LR access

When iterating over the used LRs, be careful not to try to access
an unused LR, or even an unimplemented one if you're unlucky...

Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
virt/kvm/arm/hyp/vgic-v3-sr.c