Skip to content

Commit a215ce8

Browse files
committed
Merge tag 'iommu-fix-v5.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull IOMMU fix from Joerg Roedel: "One important fix for a memory corruption issue in the Intel VT-d driver that triggers on hardware with deep PCI hierarchies" * tag 'iommu-fix-v5.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu/dmar: Fix buffer overflow during PCI bus notification
2 parents 2d28e01 + cffaaf0 commit a215ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/dmar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event)
144144
for (tmp = dev; tmp; tmp = tmp->bus->self)
145145
level++;
146146

147-
size = sizeof(*info) + level * sizeof(struct acpi_dmar_pci_path);
147+
size = sizeof(*info) + level * sizeof(info->path[0]);
148148
if (size <= sizeof(dmar_pci_notify_info_buf)) {
149149
info = (struct dmar_pci_notify_info *)dmar_pci_notify_info_buf;
150150
} else {

0 commit comments

Comments
 (0)