]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/kmemleak: fix percpu memory leak detection failure
authorGuo Weikang <guoweikang.kernel@gmail.com>
Fri, 27 Dec 2024 09:23:10 +0000 (17:23 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 13 Jan 2025 03:03:34 +0000 (19:03 -0800)
commit76d5d4c53e68719c018691b19a961e78524a155c
tree2570532e15005cb1eae4718aeac221a30cfd7147
parentcd6313beaeaea0b2e6d428afef7a86a986b50abe
mm/kmemleak: fix percpu memory leak detection failure

kmemleak_alloc_percpu gives an incorrect min_count parameter, causing
percpu memory to be considered a gray object.

Link: https://lkml.kernel.org/r/20241227092311.3572500-1-guoweikang.kernel@gmail.com
Fixes: 8c8685928910 ("mm/kmemleak: use IS_ERR_PCPU() for pointer in the percpu address space")
Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com>
Acked-by: Uros Bizjak <ubizjak@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Guo Weikang <guoweikang.kernel@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c