Re: [PATCH v9 04/12] iommu/arm-smmu-v3: Destroy vmid_map ida via devres
From: Jason Gunthorpe
Date: Fri Aug 21 2026 - 19:15:55 EST
On Tue, 21 Jul 2026 12:48:13 -0700, Nicolin Chen <nicolinc@xxxxxxxxxx> 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@xxxxxxxxxx>
--
Jason