Message ID | 7827b043-7abe-de56-2a46-19d689f34120@jsigle.com |
---|---|
State | New |
Headers | show |
Series | iommu/vt-d: Fix kernel panic caused by 416fa531c816: Preset Access/Dirty bits for IOVA over FL | expand |
On Thu, May 20, 2021 at 09:47:40AM +0200, Joerg M. Sigle wrote: > Dear colleaguse > > I've submitted a patch for 5.10.37 that wasn't included in 5.10.38, > which would have corrected a patch that has been reverted instead. > > More info: > https://bugzilla.kernel.org/show_bug.cgi?id=213077 > > Now sending to the other kernel list, according to autoresponse > from Greg Kroah-Hartman. > > Thanks for any feedback & Kind regards, Joerg Sigle Are you sure that 5.10.38 doesn't already fix this issue? We resolved an issue in this area. And where is the patch, I can't find it in this email, can you submit it "properly" so that it can be reviewed? thanks, greg k-h
--- a/drivers/iommu/intel/iommu.c 2021-05-14 09:50:46.000000000 +0200 +++ b/drivers/iommu/intel/iommu.c 2021-05-16 01:02:17.816810690 +0200 @@ -2373,7 +2373,10 @@ static int __domain_mapping(struct dmar_ } } - pteval = ((phys_addr_t)phys_pfn << VTD_PAGE_SHIFT) | attr; + if (!sg) { + sg_res = nr_pages; + pteval = ((phys_addr_t)phys_pfn << VTD_PAGE_SHIFT) | attr; + } while (nr_pages > 0) { uint64_t tmp;