[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Ya32m0n4r4jeI+46@8bytes.org>
Date: Mon, 6 Dec 2021 12:40:11 +0100
From: Joerg Roedel <joro@...tes.org>
To: Lu Baolu <baolu.lu@...ux.intel.com>
Cc: Will Deacon <will@...nel.org>, Ashish Mhetre <amhetre@...dia.com>,
Jason Gunthorpe <jgg@...dia.com>, kevin.tian@...el.com,
ashok.raj@...el.com, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] iommu: Extend mutex lock scope in
iommu_probe_device()
On Mon, Nov 08, 2021 at 02:13:49PM +0800, Lu Baolu wrote:
> Extend the scope of holding group->mutex so that it can cover the default
> domain check/attachment and direct mappings of reserved regions.
>
> Cc: Ashish Mhetre <amhetre@...dia.com>
> Fixes: 211ff31b3d33b ("iommu: Fix race condition during default domain allocation")
> Signed-off-by: Lu Baolu <baolu.lu@...ux.intel.com>
> ---
> drivers/iommu/iommu.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks. The __iommu_attach_device() function is called under
group->mutex everywhere else, so it makes here too.
Regards,
Joerg
Powered by blists - more mailing lists