]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kmemleak: Handle percpu memory allocation
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 26 Sep 2011 16:12:53 +0000 (17:12 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Oct 2011 16:53:25 +0000 (17:53 +0100)
commit614d29dd6053bd87bff4e6bb3577069425b270a1
treea031404378b163f4baa5ea5581e49f48e123ca4a
parentf5740be4645a582b7d04289430b724fc6880d77c
kmemleak: Handle percpu memory allocation

This patch adds kmemleak callbacks from the percpu allocator, reducing a
number of false positives caused by kmemleak not scanning such memory
blocks. The percpu chunks are never reported as leaks because of current
kmemleak limitations with the __percpu pointer not pointing directly to
the actual chunks.

Reported-by: Huajun Li <huajun.li.lee@gmail.com>
Acked-by: Christoph Lameter <cl@gentwo.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/kmemleak.txt
include/linux/kmemleak.h
mm/kmemleak.c
mm/percpu.c