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

From: Kees Cook
Date: Fri Apr 26 2024 - 13:06:27 EST


On Fri, Apr 26, 2024 at 03:52:24PM +0100, Catalin Marinas wrote:
> On Thu, Apr 25, 2024 at 01:55:23PM -0700, Kees Cook wrote:
> > The system will immediate fill up stack and crash when both

Oops, typo from me: "immediately". You'd never guess I'm a native English
speaker! :)

> > 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>

Thanks!

-Kees

--
Kees Cook