From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH] intel-iommu: Fix use after release during device attach Date: Tue, 04 Jan 2011 11:42:44 +0100 Message-ID: <4D22F9A4.3050807@web.de> References: <4CCFB84F.6050102@web.de> <201011021531.22886.sheng@linux.intel.com> <4CDFA96D.1060301@web.de> <4D01E677.5070702@siemens.com> <20101210184402.GE4040@sequoia.sous-sol.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7AD2655383A5E4EB169E613B" Cc: Sheng Yang , David Woodhouse , iommu@lists.linux-foundation.org, Marcelo Tosatti , Linux Kernel Mailing List , kvm , Avi Kivity To: Chris Wright , David Woodhouse Return-path: In-Reply-To: <20101210184402.GE4040@sequoia.sous-sol.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7AD2655383A5E4EB169E613B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 10.12.2010 19:44, Chris Wright wrote: > * 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 =3D dmar_domain->pgd; >>>>> if (dma_pte_present(pte)) { >>>>> - free_pgtable_page(dmar_domain->pgd); >>>>> dmar_domain->pgd =3D (struct dma_pte *) >>>>> phys_to_virt(dma_pte_addr(pte)); >=20 > While here, might as well remove the unnecessary cast. >=20 >>>>> + free_pgtable_page(pte); >>>>> } >>>>> dmar_domain->agaw--; >>>>> } >>>> >>>> Reviewed-by: Sheng Yang >=20 > Acked-by: Chris Wright >=20 >>>> CC iommu mailing list and David. >>> >>> Ping... >>> >>> I think this fix also qualifies for stable (.35 and .36). >>> >> >> Still not merged? >=20 > David, do you plan to pick this one up? >=20 > thanks, > -chris Hmm, still no reaction. Trying David's Intel address now... Jan --------------enig7AD2655383A5E4EB169E613B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk0i+akACgkQitSsb3rl5xR6UgCfWIaBoTVCrNc/QdjO7ZhnZH/S e8gAoNJpNIgaL8tG+QNTyl40bJCAk1j/ =3Hpu -----END PGP SIGNATURE----- --------------enig7AD2655383A5E4EB169E613B--