Commit 3a8b067
KVM: VMX: Do not BUG() on out-of-bounds guest IRQ
The value of the guest_irq argument to vmx_update_pi_irte() is
ultimately coming from a KVM_IRQFD API call. Do not BUG() in
vmx_update_pi_irte() if the value is out-of bounds. (Especially,
since KVM as a whole seems to hang after that.)
Instead, print a message only once if we find that we don't have a
route for a certain IRQ (which can be out-of-bounds or within the
array).
This fixes CVE-2017-1000252.
Fixes: efc6440 ("KVM: x86: Update IRTE for posted-interrupts")
Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 36ae3c0 commit 3a8b067
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11834 | 11834 | | |
11835 | 11835 | | |
11836 | 11836 | | |
11837 | | - | |
| 11837 | + | |
11838 | 11838 | | |
11839 | 11839 | | |
11840 | 11840 | | |
| |||
11843 | 11843 | | |
11844 | 11844 | | |
11845 | 11845 | | |
11846 | | - | |
| 11846 | + | |
| 11847 | + | |
| 11848 | + | |
| 11849 | + | |
| 11850 | + | |
| 11851 | + | |
11847 | 11852 | | |
11848 | 11853 | | |
11849 | 11854 | | |
| |||
0 commit comments