Skip to content
Commit f2ebd422 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@redhat.com>
parent 99becf13
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment