IOMMU Fixes for Linux v5.13-rc3

Including:

	- Important fix for the AMD IOMMU driver in the recently added
	  page-specific invalidation code to fix a calculation.

	- Fix a NULL-ptr dereference in the AMD IOMMU driver when a
	  device switches domain types.

	- Fixes for the Intel VT-d driver to check for allocation
	  failure and do correct cleanup.

	- Another fix for Intel VT-d to not allow supervisor page
	  requests from devices when using second level page
	  translation.

	- Add a MODULE_DEVICE_TABLE to the VIRTIO IOMMU driver
iommu/vt-d: Fix sysfs leak in alloc_iommu()

iommu_device_sysfs_add() is called before, so is has to be cleaned on subsequent
errors.

Fixes: 39ab9555c2411 ("iommu: Add sysfs bindings for struct iommu_device")
Cc: stable@vger.kernel.org # 4.11.x
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/17411490.HIIP88n32C@mobilepool36.emlix.com
Link: https://lore.kernel.org/r/20210525070802.361755-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 file changed