kernel_optimize_test/virt/kvm/arm
Andre Przywara 112b0b8f8f KVM: arm/arm64: vgic: Prevent access to invalid SPIs
In our VGIC implementation we limit the number of SPIs to a number
that the userland application told us. Accordingly we limit the
allocation of memory for virtual IRQs to that number.
However in our MMIO dispatcher we didn't check if we ever access an
IRQ beyond that limit, leading to out-of-bound accesses.
Add a test against the number of allocated SPIs in check_region().
Adjust the VGIC_ADDR_TO_INT macro to avoid an actual division, which
is not implemented on ARM(32).

[maz: cleaned-up original patch]

Cc: stable@vger.kernel.org
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2016-11-04 17:56:54 +00:00
..
hyp arm64: KVM: Move vgic-v3 save/restore to virt/kvm/arm/hyp 2016-09-22 13:21:46 +02:00
vgic KVM: arm/arm64: vgic: Prevent access to invalid SPIs 2016-11-04 17:56:54 +00:00
aarch32.c arm64: KVM: Make kvm_skip_instr32 available to HYP 2016-09-08 12:53:00 +02:00
arch_timer.c KVM: ARM: cleanup kvm_timer_hyp_init 2016-09-08 12:54:00 +02:00
pmu.c KVM: arm64: Require in-kernel irqchip for PMU support 2016-09-27 18:57:07 +02:00
trace.h arm/arm64: KVM: Add tracepoints for vgic and timer 2015-10-22 23:01:48 +02:00