Re: [Patch V3 0/2] iommu/arm-smmu: Fix races in iommu domain/group creation

From: Will Deacon
Date: Tue Aug 10 2021 - 16:26:06 EST


On Tue, 10 Aug 2021 10:13:59 +0530, Ashish Mhetre wrote:
> When two devices with same SID are getting probed concurrently through
> iommu_probe_device(), the iommu_group and iommu_domain are allocated more
> than once because they are not protected for concurrency. This is leading
> to context faults when one device is accessing IOVA from other device.
> Fix this by protecting iommu_domain and iommu_group creation with mutexes.
>
> Changes in v3:
> * Updated commit messages.
> * Added Signed-off-by in patch 2.
>
> [...]

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/2] iommu: Fix race condition during default domain allocation
https://git.kernel.org/will/c/211ff31b3d33
[2/2] iommu/arm-smmu: Fix race condition during iommu_group creation
https://git.kernel.org/will/c/b1a1347912a7

Cheers,
--
Will

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