Re: [PATCH 05/15] kmemleak: Add the slub memory allocation/freeinghooks
From: Pekka Enberg
Date: Thu Dec 11 2008 - 16:34:34 EST
Catalin Marinas wrote:
This patch adds the callbacks to memleak_(alloc|free) functions from the
slub allocator.
Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>
Cc: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
Hmm, I'm not sure I understand why struct kmem_cache_cpu ->freelist is
never scanned. For SMP, I suppose kmemleak doesn't scan the per-CPU
areas? But for UP, struct kmem_cache is allocated with kmalloc() and
that contains struct kmem_cache_cpu as well.
And I suppose we never scan struct pages either. Otherwise ->freelist
there would be a problem as well.
Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/