diff options
author | Mark Rutland <mark.rutland@arm.com> | 2018-04-25 17:13:41 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-04-26 17:02:37 +0100 |
commit | 41b87599c74300027f305d7b34368ec558978ff2 (patch) | |
tree | 9d2911554c552c48dc3b764708aa7d96bbe6f348 /virt/kvm/arm/vgic/vgic-mmio-v2.c | |
parent | 19791a7ca674fb3009bb068260e852a2f05b605c (diff) | |
download | linux-41b87599c74300027f305d7b34368ec558978ff2.tar.gz |
KVM: arm/arm64: vgic: fix possible spectre-v1 in vgic_get_irq()
It's possible for userspace to control intid. Sanitize intid when using
it as an array index.
At the same time, sort the includes when adding <linux/nospec.h>.
Found by smatch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: kvmarm@lists.cs.columbia.edu
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-mmio-v2.c')
0 files changed, 0 insertions, 0 deletions