From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Subject: Re: [PATCH] intel-iommu: Fix use after release during device attach Date: Fri, 10 Dec 2010 10:44:02 -0800 Message-ID: <20101210184402.GE4040@sequoia.sous-sol.org> References: <4CCFB84F.6050102@web.de> <201011021531.22886.sheng@linux.intel.com> <4CDFA96D.1060301@web.de> <4D01E677.5070702@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sheng Yang , David Woodhouse , iommu@lists.linux-foundation.org, Marcelo Tosatti , Linux Kernel Mailing List , kvm , Avi Kivity To: Jan Kiszka Return-path: Content-Disposition: inline In-Reply-To: <4D01E677.5070702@siemens.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org * Jan Kiszka (jan.kiszka@siemens.com) wrote: > >>> --- a/drivers/pci/intel-iommu.c > >>> +++ b/drivers/pci/intel-iommu.c > >>> @@ -3627,9 +3627,9 @@ static int intel_iommu_attach_device(struct > >>> iommu_domain *domain, > >>> > >>> pte = dmar_domain->pgd; > >>> if (dma_pte_present(pte)) { > >>> - free_pgtable_page(dmar_domain->pgd); > >>> dmar_domain->pgd = (struct dma_pte *) > >>> phys_to_virt(dma_pte_addr(pte)); While here, might as well remove the unnecessary cast. > >>> + free_pgtable_page(pte); > >>> } > >>> dmar_domain->agaw--; > >>> } > >> > >> Reviewed-by: Sheng Yang Acked-by: Chris Wright > >> CC iommu mailing list and David. > > > > Ping... > > > > I think this fix also qualifies for stable (.35 and .36). > > > > Still not merged? David, do you plan to pick this one up? thanks, -chris