Skip to content

iommu/tegra-smmu: Reference count fixes

Thierry Reding linux-iommu linux-tegra 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3iommu/tegra-smmu: Set IOMMU group namedrivers/iommu/tegra-smmu.c+1 -00 replies
2/3iommu/tegra-smmu: Balance IOMMU group reference countdrivers/iommu/tegra-smmu.c+3 -10 replies
3/3iommu/tegra-smmu: Prune IOMMU group when it is releaseddrivers/iommu/tegra-smmu.c+13 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] iommu/tegra-smmu: Reference count fixes

From: Thierry Reding <[email protected]>

I was running into some use-after-free conditions after recent changes to the host1x driver cause the child devices to be destroyed upon driver unloading. This in turn caused the IOMMU groups associated with the child devices to also get released and that uncovered a subtle reference count unbalance.

This contains two fixes for these issues and also includes a patch that sets the IOMMU group name for "static" groups to help with debugging.

Thierry

Thierry Reding (3):
iommu/tegra-smmu: Set IOMMU group name iommu/tegra-smmu: Balance IOMMU group reference count iommu/tegra-smmu: Prune IOMMU group when it is released

 drivers/iommu/tegra-smmu.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
Signature · 6 lines
2.27.0

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