2013-01-14 17:53:52 +00:00
|
|
|
References: CVE-2012-5634 XSA-33 bnc#794316
|
|
|
|
|
2013-02-22 21:42:01 +00:00
|
|
|
# HG changeset patch
|
|
|
|
# User Jan Beulich <jbeulich@suse.com>
|
|
|
|
# Date 1357748006 -3600
|
|
|
|
# Node ID 19fd1237ff0dfa3d97a896d6ed6fbbd33f816a9f
|
|
|
|
# Parent 56b0d5476c11bfd09986080dfa97923586ef474f
|
2013-01-14 17:53:52 +00:00
|
|
|
VT-d: fix interrupt remapping source validation for devices behind legacy bridges
|
|
|
|
|
|
|
|
Using SVT_VERIFY_BUS here doesn't make sense; native Linux also
|
|
|
|
uses SVT_VERIFY_SID_SQ here instead.
|
|
|
|
|
|
|
|
This is XSA-33 / CVE-2012-5634.
|
|
|
|
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@suse.com>
|
|
|
|
|
|
|
|
--- a/xen/drivers/passthrough/vtd/intremap.c
|
|
|
|
+++ b/xen/drivers/passthrough/vtd/intremap.c
|
|
|
|
@@ -469,7 +469,7 @@ static void set_msi_source_id(struct pci
|
|
|
|
set_ire_sid(ire, SVT_VERIFY_BUS, SQ_ALL_16,
|
|
|
|
(bus << 8) | pdev->bus);
|
|
|
|
else if ( pdev_type(seg, bus, devfn) == DEV_TYPE_LEGACY_PCI_BRIDGE )
|
|
|
|
- set_ire_sid(ire, SVT_VERIFY_BUS, SQ_ALL_16,
|
|
|
|
+ set_ire_sid(ire, SVT_VERIFY_SID_SQ, SQ_ALL_16,
|
|
|
|
PCI_BDF2(bus, devfn));
|
|
|
|
}
|
|
|
|
break;
|