lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 9 May 2012 10:16:42 -0700
From:	Tejun Heo <tj@...nel.org>
To:	Catalin Marinas <catalin.marinas@....com>
Cc:	Sami Liedes <sami.liedes@....fi>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Christoph Lameter <cl@...ux-foundation.org>
Subject: Re: kmemleak: Cannot insert 0xffff880007fedd28 into the object
 search tree (already existing)

On Wed, May 09, 2012 at 04:55:19PM +0100, Catalin Marinas wrote:
> ----------------8<---------------------------------------------

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?

> commit 631d16e6284ddecd9d261f929582244f6757b678
> Author: Catalin Marinas <catalin.marinas@....com>
> Date:   Wed May 9 16:45:46 2012 +0100
> 
>     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@....fi>
>     Cc: Tejun Heo <tj@...nel.org>
>     Cc: Christoph Lameter <cl@...ux-foundation.org>
>     Signed-off-by: Catalin Marinas <catalin.marinas@....com>
> 
> 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;

Applied to percpu/for-3.4-fixes.  Thanks.

-- 
tejun
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ