Re: [PATCH] iommu/dart: Clear sid2group entry when a group is freed

2021-09-28 Thread Joerg Roedel
On Fri, Sep 24, 2021 at 03:45:02PM +0200, Sven Peter wrote: > drivers/iommu/apple-dart.c | 38 +++--- > 1 file changed, 35 insertions(+), 3 deletions(-) Applied for v5.15, thanks. ___ iommu mailing list

Re: [PATCH] iommu/dart: Clear sid2group entry when a group is freed

2021-09-24 Thread Marc Zyngier
On Fri, 24 Sep 2021 14:45:02 +0100, Sven Peter wrote: > > sid2groups keeps track of which stream id combinations belong to a > iommu_group to assign those correctly to devices. > When a iommu_group is freed a stale pointer will however remain in > sid2groups. This prevents devices with the same

[PATCH] iommu/dart: Clear sid2group entry when a group is freed

2021-09-24 Thread Sven Peter via iommu
sid2groups keeps track of which stream id combinations belong to a iommu_group to assign those correctly to devices. When a iommu_group is freed a stale pointer will however remain in sid2groups. This prevents devices with the same stream id combination to ever be attached again (see below). Fix