]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - mm/kmemleak.c
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>
Fri, 2 Dec 2011 16:12:42 +0000 (16:12 +0000)
commitf528f0b8e53d73b18be71e96693cfab9322f33c7
tree5a25d6ac1c2f18561e554074aa7c06bf3d899183
parent74341703edca6bc68a165a18453071b097828407
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