Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -1
+1 -1
drivers/vfio/pci/vfio_pci_core.c
··· 1260 1260 struct vfio_pci_hot_reset_info hdr; 1261 1261 struct vfio_pci_fill_info fill = {}; 1262 1262 bool slot = false; 1263 - int ret, count; 1263 + int ret, count = 0; 1264 1264 1265 1265 if (copy_from_user(&hdr, arg, minsz)) 1266 1266 return -EFAULT;