+4
−0
+6
−2
+3
−2
Loading
mainline inclusion from mainline-v6.14-rc1 commit b2aad24b53333f1904a55d97e3fde2246ef05bb6 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IBK4CC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b2aad24b53333f1904a55d97e3fde2246ef05bb6 -------------------------------- kmemleak explicitly scans the mem_map through the valid struct page objects. However, memmap_alloc() was also adding this memory to the gray object list, causing it to be scanned twice. Remove memmap_alloc() from the scan list and add a comment to clarify the behavior. Link: https://lore.kernel.org/lkml/CAOm6qn=FVeTpH54wGDFMHuCOeYtvoTx30ktnv9-w3Nh8RMofEA@mail.gmail.com/ Link: https://lkml.kernel.org/r/20250106021126.1678334-1-guoweikang.kernel@gmail.com Signed-off-by:Guo Weikang <guoweikang.kernel@gmail.com> Reviewed-by:
Catalin Marinas <catalin.marinas@arm.com> Cc: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Wang Lian <dev01404@linx-info.com>