[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a732a2c7-c5d7-53f1-1abc-f9907384ef71@linux.intel.com>
Date: Wed, 19 Oct 2022 08:54:13 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Jerry Snitselaar <jsnitsel@...hat.com>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org
Cc: baolu.lu@...ux.intel.com, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>
Subject: Re: [PATCH v2] iommu/vt-d: Clean up si_domain in the init_dmars()
error path
On 10/10/22 10:48 PM, Jerry Snitselaar wrote:
> A splat from kmem_cache_destroy() was seen with a kernel prior to
> commit ee2653bbe89d ("iommu/vt-d: Remove domain and devinfo mempool")
> when there was a failure in init_dmars(), because the iommu_domain
> cache still had objects. While the mempool code is now gone, there
> still is a leak of the si_domain memory if init_dmars() fails. So
> clean up si_domain in the init_dmars() error path.
>
> Cc: Lu Baolu<baolu.lu@...ux.intel.com>
> Cc: Joerg Roedel<joro@...tes.org>
> Cc: Will Deacon<will@...nel.org>
> Cc: Robin Murphy<robin.murphy@....com>
> Fixes: 86080ccc223a ("iommu/vt-d: Allocate si_domain in init_dmars()")
> Signed-off-by: Jerry Snitselaar<jsnitsel@...hat.com>
Thanks for the patch. It has been queued for v6.1.
https://lore.kernel.org/linux-iommu/20221019004447.4563-1-baolu.lu@linux.intel.com/
Best regards,
baolu
Powered by blists - more mailing lists