[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110426211424.F35A33E1886@tassilo.jf.intel.com>
Date: Tue, 26 Apr 2011 14:14:24 -0700 (PDT)
From: Andi Kleen <andi@...stfloor.org>
To: stable@...nel.org, jan.kiszka@...mens.com, ak@...ux.intel.com,
sheng@...ux.intel.com, David.Woodhouse@...el.com,
linux-kernel@...r.kernel.org, stable@...nel.org,
tim.bird@...sony.com
Subject: [PATCH] [102/106] From: intel-iommu: Fix use after release during device attach
2.6.35-longterm review patch. If anyone has any objections, please let me know.
------------------
Date: Tue, 2 Nov 2010 08:05:51 +0100
Subject: [PATCH] intel-iommu: Fix use after release during device attach
Obtain the new pgd pointer before releasing the page containing this
value.
Cc: stable@...nel.org
Signed-off-by: Jan Kiszka <jan.kiszka@...mens.com>
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
Reviewed-by: Sheng Yang <sheng@...ux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@...el.com>
---
drivers/pci/intel-iommu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Index: linux-2.6.35.y/drivers/pci/intel-iommu.c
===================================================================
--- linux-2.6.35.y.orig/drivers/pci/intel-iommu.c
+++ linux-2.6.35.y/drivers/pci/intel-iommu.c
@@ -3638,9 +3638,9 @@ static int intel_iommu_attach_device(str
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));
+ free_pgtable_page(pte);
}
dmar_domain->agaw--;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists