IOMMU Fixes for Linux v5.3-rc4

Including:

	- A couple more fixes for the Intel VT-d driver for bugs
	  introduced during the recent conversion of this driver to use
	  IOMMU core default domains.

	- Fix for common dma-iommu code to make sure MSI mappings happen
	  in the correct domain for a device.

	- Fix a corner case in the handling of sg-lists in dma-iommu
	  code that might cause dma_length to be truncated.

	- Mark a switch as fall-through in arm-smmu code.
iommu/vt-d: Fix possible use-after-free of private domain

Multiple devices might share a private domain. One real example
is a pci bridge and all devices behind it. When remove a private
domain, make sure that it has been detached from all devices to
avoid use-after-free case.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Fixes: 942067f1b6b97 ("iommu/vt-d: Identify default domains replaced with private")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 file changed