diff options
| author | Simon Xue <[email protected]> | 2025-06-23 02:00:18 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-06-27 07:10:29 +0000 |
| commit | 62e062a29ad5133f67c20b333ba0a952a99161ae (patch) | |
| tree | d900f931cb1a487e55acc83e802902df2e64240c /drivers/iommu/intel/cache.c | |
| parent | Linux 6.16-rc3 (diff) | |
| download | kernel-62e062a29ad5133f67c20b333ba0a952a99161ae.tar.gz kernel-62e062a29ad5133f67c20b333ba0a952a99161ae.zip | |
iommu/rockchip: prevent iommus dead loop when two masters share one IOMMU
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: <[email protected]>
Fixes: 25c2325575cc ("iommu/rockchip: Add missing set_platform_dma_ops callback")
Signed-off-by: Simon Xue <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/iommu/intel/cache.c')
0 files changed, 0 insertions, 0 deletions
