summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-04-22 14:02:11 (GMT)
committerAvi Kivity <avi@redhat.com>2012-06-05 13:39:58 (GMT)
commitf2ebd422f71cda9c791f76f85d2ca102ae34a1ed (patch)
tree79944d1c2e3a879b320c0ac2ead230eb655573ca /drivers
parent99becf1328d8d71dd6f4480e3591d7dcdb389e57 (diff)
downloadlinux-fsl-qoriq-f2ebd422f71cda9c791f76f85d2ca102ae34a1ed.tar.xz
KVM: Fix buffer overflow in kvm_set_irq()
kvm_set_irq() has an internal buffer of three irq routing entries, allowing connecting a GSI to three IRQ chips or on MSI. However setup_routing_entry() does not properly enforce this, allowing three irqchip routes followed by an MSI route to overflow the buffer. Fix by ensuring that an MSI entry is added to an empty list. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions