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 'iommu-fix-v5.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu

Pull IOMMU fix from Joerg Roedel:
"Fix an AMD IOMMU issue where the driver didn't correctly setup the
exclusion range in the hardware registers, resulting in exclusion
ranges being one page too big.

This can cause data corruption of the address of that last page is
used by DMA operations"

* tag 'iommu-fix-v5.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
iommu/amd: Set exclusion range correctly

+1 -1
+1 -1
drivers/iommu/amd_iommu_init.c
··· 359 359 static void iommu_set_exclusion_range(struct amd_iommu *iommu) 360 360 { 361 361 u64 start = iommu->exclusion_start & PAGE_MASK; 362 - u64 limit = (start + iommu->exclusion_length) & PAGE_MASK; 362 + u64 limit = (start + iommu->exclusion_length - 1) & PAGE_MASK; 363 363 u64 entry; 364 364 365 365 if (!iommu->exclusion_start)