Skip to content

Commit d6e1712

Browse files
committed
Merge tag 'vfio-v6.10' of https://github.com/awilliam/linux-vfio
Pull VFIO fix from Alex Williamson: - Recent stable backports are exposing a bug introduced in the v6.10 development cycle where a counter value is uninitialized. This leads to regressions in userspace drivers like QEMU where where the kernel might ask for an arbitrary buffer size or return out of memory itself based on a bogus value. Zero initialize the counter. (Yi Liu) * tag 'vfio-v6.10' of https://github.com/awilliam/linux-vfio: vfio/pci: Init the count variable in collecting hot-reset devices
2 parents f6963ab + 5a88a3f commit d6e1712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vfio/pci/vfio_pci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ static int vfio_pci_ioctl_get_pci_hot_reset_info(
12601260
struct vfio_pci_hot_reset_info hdr;
12611261
struct vfio_pci_fill_info fill = {};
12621262
bool slot = false;
1263-
int ret, count;
1263+
int ret, count = 0;
12641264

12651265
if (copy_from_user(&hdr, arg, minsz))
12661266
return -EFAULT;

0 commit comments

Comments
 (0)