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.4-rc4' of https://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:

- Test for and return error for invalid pfns through the pin pages
interface (Yan Zhao)

* tag 'vfio-v6.4-rc4' of https://github.com/awilliam/linux-vfio:
vfio/type1: check pfn valid before converting to struct page

+5
+5
drivers/vfio/vfio_iommu_type1.c
··· 860 860 if (ret) 861 861 goto pin_unwind; 862 862 863 + if (!pfn_valid(phys_pfn)) { 864 + ret = -EINVAL; 865 + goto pin_unwind; 866 + } 867 + 863 868 ret = vfio_add_to_pfn_list(dma, iova, phys_pfn); 864 869 if (ret) { 865 870 if (put_pfn(phys_pfn, dma->prot) && do_accounting)