projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6423f7
)
VT-d: fix interrupt remapping source validation for devices behind legacy bridges
author
Jan Beulich
<jbeulich@suse.com>
Wed, 9 Jan 2013 16:13:26 +0000
(17:13 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 9 Jan 2013 16:13:26 +0000
(17:13 +0100)
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>
xen/drivers/passthrough/vtd/intremap.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/vtd/intremap.c
b/xen/drivers/passthrough/vtd/intremap.c
index 8b45e5ae8b1c69c6c8d6d8035c72e21e08d92b7a..a9c3bc4c10acebf1e4977022911bd4786f62977d 100644
(file)
--- a/
xen/drivers/passthrough/vtd/intremap.c
+++ b/
xen/drivers/passthrough/vtd/intremap.c
@@
-473,7
+473,7
@@
static void set_msi_source_id(struct pci_dev *pdev, struct iremap_entry *ire)
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;