Skip to content

iommu: fix device leaks

Johan Hovold linux-iommu lkml stable 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 10 repliesApplied
  2. v214 patches 9 repliesSuperseded
  3. v114 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- fix mediatek use-after-free on probe deferral
- add acks and reviewed-bys from Marek, Yong and Thierry

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/14iommu/apple-dart: fix device leak on of_xlate()drivers/iommu/apple-dart.c+2 -00 replies
2/14iommu/qcom: fix device leak on of_xlate()drivers/iommu/arm/arm-smmu/qcom_iommu.c+4 -60 replies
3/14iommu/exynos: fix device leak on of_xlate()drivers/iommu/exynos-iommu.c+3 -60 replies
4/14iommu/ipmmu-vmsa: fix device leak on of_xlate()drivers/iommu/ipmmu-vmsa.c+2 -00 replies
5/14iommu/mediatek: fix device leak on of_xlate()drivers/iommu/mtk_iommu.c+2 -01 reply
6/14iommu/mediatek: fix use-after-free on probe deferraldrivers/iommu/mtk_iommu.c+18 -72 replies
7/14iommu/mediatek: simplify dt parsing error handlingdrivers/iommu/mtk_iommu.c+3 -42 replies
8/14iommu/mediatek-v1: fix device leak on probe_device()drivers/iommu/mtk_iommu_v1.c+2 -01 reply
9/14iommu/mediatek-v1: fix device leaks on probe()drivers/iommu/mtk_iommu_v1.c+18 -51 reply
10/14iommu/mediatek-v1: add missing larb count sanity checkdrivers/iommu/mtk_iommu_v1.c+3 -01 reply
11/14iommu/omap: fix device leaks on probe_device()drivers/iommu/omap-iommu.c drivers/iommu/omap-iommu.h+1 -30 replies
12/14iommu/omap: simplify probe_device() error handlingdrivers/iommu/omap-iommu.c+1 -40 replies
13/14iommu/sun50i: fix device leak on of_xlate()drivers/iommu/sun50i-iommu.c+2 -00 replies
14/14iommu/tegra: fix device leak on probe_device()drivers/iommu/tegra-smmu.c+2 -30 replies

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchRobin MurphyYong WuMarek SzyprowskiThierry RedingAngeloGioacchino Del Regno
1/14A-b
2/14A-b
3/14A-b A-b
4/14A-b
5/14A-b R-b R-b
6/14A-b R-b R-b
7/14A-b R-b R-b
8/14A-b R-b R-b
9/14A-b R-b
10/14A-b R-b R-b
11/14A-b
12/14A-b
13/14A-b
14/14A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/14] iommu: fix device leaks

This series fixes device leaks in the iommu drivers, which pretty consistently failed to drop the reference taken by of_find_device_by_node() when looking up iommu platform devices.

Included are also a couple of related cleanups.

Johan

Changes in v3
- fix mediatek use-after-free on probe deferral
- add acks and reviewed-bys from Marek, Yong and Thierry

Changes in v2
- drop omap reference sooner; remove unused pointer
- amend exynos commit message with reference to partial fix
- amend tegra commit message with reference to partial fix
- add Robin's ack

Johan Hovold (14):
iommu/apple-dart: fix device leak on of_xlate() iommu/qcom: fix device leak on of_xlate() iommu/exynos: fix device leak on of_xlate() iommu/ipmmu-vmsa: fix device leak on of_xlate() iommu/mediatek: fix device leak on of_xlate() iommu/mediatek: fix use-after-free on probe deferral iommu/mediatek: simplify dt parsing error handling iommu/mediatek-v1: fix device leak on probe_device() iommu/mediatek-v1: fix device leaks on probe() iommu/mediatek-v1: add missing larb count sanity check iommu/omap: fix device leaks on probe_device() iommu/omap: simplify probe_device() error handling iommu/sun50i: fix device leak on of_xlate() iommu/tegra: fix device leak on probe_device()

 drivers/iommu/apple-dart.c              |  2 ++
 drivers/iommu/arm/arm-smmu/qcom_iommu.c | 10 +++-----
 drivers/iommu/exynos-iommu.c            |  9 +++----
 drivers/iommu/ipmmu-vmsa.c              |  2 ++
 drivers/iommu/mtk_iommu.c               | 34 +++++++++++++++++--------
 drivers/iommu/mtk_iommu_v1.c            | 28 ++++++++++++++++----
 drivers/iommu/omap-iommu.c              |  7 ++---
 drivers/iommu/omap-iommu.h              |  2 --
 drivers/iommu/sun50i-iommu.c            |  2 ++
 drivers/iommu/tegra-smmu.c              |  5 ++--
 10 files changed, 63 insertions(+), 38 deletions(-)
Signature · 1 line
2.49.1