|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging-4.19] xen/pci: prevent infinite loop for faulty SR-IOV cards
commit 54d8d847f49f0426a700baa0e05e8a2dc8214fbd
Author: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
AuthorDate: Mon Nov 10 16:04:03 2025 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Nov 10 16:04:03 2025 +0100
xen/pci: prevent infinite loop for faulty SR-IOV cards
If a SR-IOV card presents an I/O space inside a BAR the
code will continue to loop on the same card.
This is due to the missing increment of the cycle variable.
Fixes: a1a6d59862f4 ("pci: split code to size BARs from pci_add_device")
Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
master commit: f7091c0e1fd43877621d4eb2c1c4106797b3c551
master date: 2025-10-27 15:52:20 +0100
---
xen/drivers/passthrough/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
index 4d06e5d3f9..80e06c0a78 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -766,6 +766,7 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn,
printk(XENLOG_WARNING
"SR-IOV device %pp with vf BAR%u in IO space\n",
&pdev->sbdf, i);
+ ++i;
continue;
}
ret = pci_size_mem_bar(pdev->sbdf, idx, NULL,
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.19
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |