Re: [PATCH] mm/slub: Avoid recursive loop with kmemleak

From: Catalin Marinas
Date: Fri Apr 26 2024 - 10:52:36 EST


On Thu, Apr 25, 2024 at 01:55:23PM -0700, Kees Cook wrote:
> The system will immediate fill up stack and crash when both
> CONFIG_DEBUG_KMEMLEAK and CONFIG_MEM_ALLOC_PROFILING are enabled.
> Avoid allocation tagging of kmemleak caches, otherwise recursive
> allocation tracking occurs.
>
> Fixes: 279bb991b4d9 ("mm/slab: add allocation accounting into slab allocation and free paths")
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

For the kmemleak bits:

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>