* [PATCH] iommu: exynos: tell kmemleak to ignore 2nd level page tables
@ 2015-05-09 0:05 Dmitry Torokhov
2015-05-11 16:50 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Torokhov @ 2015-05-09 0:05 UTC (permalink / raw)
To: linux-arm-kernel
From: Colin Cross <ccross@android.com>
The pointers to the 2nd level page tables are converted to 1st level
page table entries, which means kmemleak can't find them and assumes
they have been leaked. Call kmemleak_ignore on the 2nd level page
tables to prevent them from showing up in kmemleak reports.
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
---
drivers/iommu/exynos-iommu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index dc14fec4..16920b2 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -855,6 +855,7 @@ static sysmmu_pte_t *alloc_lv2entry(struct exynos_iommu_domain *priv,
return ERR_PTR(-ENOMEM);
*sent = mk_lv1ent_page(virt_to_phys(pent));
+ kmemleak_ignore(pent);
*pgcounter = NUM_LV2ENTRIES;
pgtable_flush(pent, pent + NUM_LV2ENTRIES);
pgtable_flush(sent, sent + 1);
--
2.2.0.rc0.207.ga3a616c
--
Dmitry
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] iommu: exynos: tell kmemleak to ignore 2nd level page tables
2015-05-09 0:05 [PATCH] iommu: exynos: tell kmemleak to ignore 2nd level page tables Dmitry Torokhov
@ 2015-05-11 16:50 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2015-05-11 16:50 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 08, 2015 at 05:05:44PM -0700, Dmitry Torokhov wrote:
> From: Colin Cross <ccross@android.com>
>
> The pointers to the 2nd level page tables are converted to 1st level
> page table entries, which means kmemleak can't find them and assumes
> they have been leaked. Call kmemleak_ignore on the 2nd level page
> tables to prevent them from showing up in kmemleak reports.
>
> Signed-off-by: Colin Cross <ccross@android.com>
> Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
> ---
> drivers/iommu/exynos-iommu.c | 1 +
> 1 file changed, 1 insertion(+)
Applied to arm/exynos, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-11 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-09 0:05 [PATCH] iommu: exynos: tell kmemleak to ignore 2nd level page tables Dmitry Torokhov
2015-05-11 16:50 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).