kmemleak: Do not use off-slab management with SLAB_NOLEAKTRACE
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Oct 2009 13:33:08 +0000 (13:33 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Oct 2009 13:33:08 +0000 (13:33 +0000)
commite7cb55b946a2182c347047dc903c6ed0daef100c
tree28cc01bd513418a4917358b748481d3a31f69ab1
parent012abeea669ea49636cf952d13298bb68654146a
kmemleak: Do not use off-slab management with SLAB_NOLEAKTRACE

With the slab allocator, if off-slab management is enabled for the
kmem_caches used by kmemleak, it leads to recursive calls into
kmemleak_alloc(). Off-slab management can be triggered by other config
options increasing the slab size, e.g. DEBUG_PAGEALLOC.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/slab.c