• Linus Torvalds's avatar
    Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · db78436b
    Linus Torvalds authored
    Pull iommufd updates from Jason Gunthorpe:
     "Collection of small cleanup and one fix:
    
       - Sort headers and struct forward declarations
    
       - Fix random selftest failures in some cases due to dirty tracking
         tests
    
       - Have the reserved IOVA regions mechanism work when a HWPT is used
         as a nesting parent. This updates the nesting parent's IOAS with
         the reserved regions of the device and will also install the ITS
         doorbell page on ARM.
    
       - Add missed validation of parent domain ops against the current
         iommu
    
       - Fix a syzkaller bug related to integer overflow during ALIGN()
    
       - Tidy two iommu_domain attach paths"
    
    * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
      iommu: Set iommu_attach_handle->domain in core
      iommufd: Avoid duplicated __iommu_group_set_core_domain() call
      iommufd: Protect against overflow of ALIGN() during iova allocation
      iommufd: Reorder struct forward declarations
      iommufd: Check the domain owner of the parent before creating a nesting domain
      iommufd/device: Enforce reserved IOVA also when attached to hwpt_nested
      iommufd/selftest: Fix buffer read overrrun in the dirty test
      iommufd: Reorder include files
    db78436b
ioas.c 9.67 KB