linux-yocto/drivers/iommu
Simon Xue 73d43c2150 iommu/rockchip: prevent iommus dead loop when two masters share one IOMMU
commit 62e062a29a upstream.

When two masters share an IOMMU, calling ops->of_xlate during
the second master's driver init may overwrite iommu->domain set
by the first. This causes the check if (iommu->domain == domain)
in rk_iommu_attach_device() to fail, resulting in the same
iommu->node being added twice to &rk_domain->iommus, which can
lead to an infinite loop in subsequent &rk_domain->iommus operations.

Cc: <stable@vger.kernel.org>
Fixes: 25c2325575 ("iommu/rockchip: Add missing set_platform_dma_ops callback")
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20250623020018.584802-1-xxm@rock-chips.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-10 16:03:20 +02:00
..
amd iommu/amd: Ensure GA log notifier callbacks finish running before module unload 2025-06-27 11:08:55 +01:00
arm iommu/arm-smmu-v3: Fix iommu_device_probe bug due to duplicated stream ids 2025-05-09 09:44:07 +02:00
intel iommu/vt-d: Apply quirk_iommu_igfx for 8086:0044 (QM57/QS57) 2025-05-09 09:43:52 +02:00
iommufd iommufd: Fail replace if device has not been attached 2025-04-25 10:45:37 +02:00
apple-dart.c
dma-iommu.c genirq/msi: Store the IOMMU IOVA directly in msi_desc instead of iommu_cookie 2025-06-04 14:42:06 +02:00
dma-iommu.h
exynos-iommu.c
fsl_pamu_domain.c
fsl_pamu_domain.h
fsl_pamu.c
fsl_pamu.h
hyperv-iommu.c
io-pgfault.c
io-pgtable-arm-v7s.c
io-pgtable-arm.c
io-pgtable-arm.h
io-pgtable-dart.c
io-pgtable.c
iommu-debugfs.c
iommu-priv.h
iommu-sva.c
iommu-sva.h
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Protect against overflow in iommu_pgsize() 2025-06-19 15:28:12 +02:00
iova.c
ipmmu-vmsa.c
irq_remapping.c
irq_remapping.h
Kconfig iommu: remove duplicate selection of DMAR_TABLE 2025-06-19 15:28:16 +02:00
Makefile
msm_iommu_hw-8xxx.h
msm_iommu.c
msm_iommu.h
mtk_iommu_v1.c
mtk_iommu.c iommu/mediatek: Fix NULL pointer deference in mtk_iommu_device_group 2025-04-25 10:45:09 +02:00
of_iommu.c
omap-iommu-debug.c
omap-iommu.c
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c iommu/rockchip: prevent iommus dead loop when two masters share one IOMMU 2025-07-10 16:03:20 +02:00
s390-iommu.c
sprd-iommu.c
sun50i-iommu.c
tegra-gart.c
tegra-smmu.c
virtio-iommu.c