Re: [PATCH 1/1] iommu/vt-d: Make iotlb_sync_map a static property of dmar_domain

From: Will Deacon
Date: Mon Jul 21 2025 - 10:36:10 EST


On Mon, 21 Jul 2025 13:16:57 +0800, Lu Baolu wrote:
> Commit 12724ce3fe1a ("iommu/vt-d: Optimize iotlb_sync_map for
> non-caching/non-RWBF modes") dynamically set iotlb_sync_map. This causes
> synchronization issues due to lack of locking on map and attach paths,
> racing iommufd userspace operations.
>
> Invalidation changes must precede device attachment to ensure all flushes
> complete before hardware walks page tables, preventing coherence issues.
>
> [...]

Applied to iommu (intel/vt-d), thanks!

[1/1] iommu/vt-d: Make iotlb_sync_map a static property of dmar_domain
https://git.kernel.org/iommu/c/cee686775f9c

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev