Skip to content

iommu/arm-smmu: Fix races in iommu domain/group creation

Ashish Mhetre linux-arm-kernel linux-iommu lkml 3 versions – Applied

Status from this message: Applied to will (for-joerg/arm-smmu/updates), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Updated commit messages.
* Added Signed-off-by in patch 2.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2iommu: Fix race condition during default domain allocationdrivers/iommu/iommu.c+2 -00 replies
2/2iommu/arm-smmu: Fix race condition during iommu_group creationdrivers/iommu/arm/arm-smmu/arm-smmu.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

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

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.

Ashish Mhetre (1):
iommu: Fix race condition during default domain allocation

Krishna Reddy (1):
iommu/arm-smmu: Fix race condition during iommu_group creation

 drivers/iommu/arm/arm-smmu/arm-smmu.c | 6 +++++-
 drivers/iommu/iommu.c                 | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 6 lines
2.7.4

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu