lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: kmemleak: Cannot insert 0xffff880007fedd28 into the object search tree (already existing)
On Wed, May 09, 2012 at 06:16:42PM +0100, Tejun Heo wrote:
> git-am doesn't handle patches submitted this way. Can you please put
> the patch title as $SUBJ and put patch description in the body
> followed by '---' for non-description comments? Or is there some tool
> that I should be using instead?

I should have used git format-patch. Here it is again (if it still
doesn't work, I'll mail it to you separately).

-----------------------8<--------------------------

From 631d16e6284ddecd9d261f929582244f6757b678 Mon Sep 17 00:00:00 2001
From: Catalin Marinas <catalin.marinas@arm.com>
Date: Wed, 9 May 2012 16:45:46 +0100
Subject: [PATCH] kmemleak: Fix the kmemleak tracking of the percpu areas with
!SMP

Kmemleak tracks the percpu allocations via a specific API and the
originally allocated areas must be removed from kmemleak (via
kmemleak_free). The code was already doing this for SMP systems.

Reported-by: Sami Liedes <sami.liedes@iki.fi>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
---
mm/percpu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/percpu.c b/mm/percpu.c
index f47af91..2daf6d5 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1885,6 +1885,8 @@ void __init setup_per_cpu_areas(void)
fc = __alloc_bootmem(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
if (!ai || !fc)
panic("Failed to allocate memory for percpu areas.");
+ /* kmemleak tracks the percpu allocations separately */
+ kmemleak_free(fc);

ai->dyn_size = unit_size;
ai->unit_size = unit_size;

\
 
 \ /
  Last update: 2012-05-09 20:01    [W:0.668 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site