[GIT PULL] VFIO fix for v6.10
From: Alex Williamson
Date: Wed Jul 10 2024 - 13:28:08 EST
Hi Linus,
This fixes a late breaking regression introduced in the v6.10 cycle and
appearing in recent stable backports. Thanks,
Alex
The following changes since commit 256abd8e550ce977b728be79a74e1729438b4948:
Linux 6.10-rc7 (2024-07-07 14:23:46 -0700)
are available in the Git repository at:
https://github.com/awilliam/linux-vfio.git tags/vfio-v6.10
for you to fetch changes up to 5a88a3f67e37e39f933b38ebb4985ba5822e9eca:
vfio/pci: Init the count variable in collecting hot-reset devices (2024-07-10 08:47:46 -0600)
----------------------------------------------------------------
VFIO fix for v6.10
- 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)
----------------------------------------------------------------
Yi Liu (1):
vfio/pci: Init the count variable in collecting hot-reset devices
drivers/vfio/pci/vfio_pci_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)