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-v4.18-rc6' of git://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:
"Harden potential Spectre v1 issue (Gustavo A. R. Silva)"

* tag 'vfio-v4.18-rc6' of git://github.com/awilliam/linux-vfio:
vfio/pci: Fix potential Spectre v1

+4
+4
drivers/vfio/pci/vfio_pci.c
··· 28 28 #include <linux/uaccess.h> 29 29 #include <linux/vfio.h> 30 30 #include <linux/vgaarb.h> 31 + #include <linux/nospec.h> 31 32 32 33 #include "vfio_pci_private.h" 33 34 ··· 728 727 if (info.index >= 729 728 VFIO_PCI_NUM_REGIONS + vdev->num_regions) 730 729 return -EINVAL; 730 + info.index = array_index_nospec(info.index, 731 + VFIO_PCI_NUM_REGIONS + 732 + vdev->num_regions); 731 733 732 734 i = info.index - VFIO_PCI_NUM_REGIONS; 733 735