[PATCH v9 04/12] iommu/arm-smmu-v3: Destroy vmid_map ida via devres

Jason Gunthorpe jgg at nvidia.com
Fri Aug 21 16:15:26 PDT 2026


On Tue, 21 Jul 2026 12:48:13 -0700, Nicolin Chen <nicolinc at nvidia.com> wrote:
> The vmid_map ida is only destroyed in arm_smmu_device_remove(), which does
> not run when the probe fails. This is currently harmless, as the ida stays
> empty until the first S2 domain allocation, which can only happen after a
> successful probe.
> 
> An upcoming change will start reserving the crashed kernel's VMIDs in this
> ida, at the probe time of a kdump kernel. A probe failure would then leak
> the ida's internal allocations.
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

-- 
Jason



More information about the linux-arm-kernel mailing list