Re: [PATCH 2/2] mm/kmemleak: Disable KASAN instrumentation in kmemleak

From: Catalin Marinas
Date: Tue Mar 26 2024 - 13:35:28 EST


On Thu, Mar 07, 2024 at 02:05:48PM -0500, Waiman Long wrote:
> Kmemleak ia a memory leak checker. KASAN is also a memory checker but
> it focuses more on finding out-of-bounds and use-after-free bugs. Since
> kmemleak is inherently slow especially on systems with large number of
> CPUs, adding KASAN instrumentation will make it slower even more. As
> kmemleak is not for production use, the utility of enabling KASAN there
> is questionable.
>
> This patch disables KASAN instrumentation for configurations that
> enable both of them to slightly reduce performance overhead.
>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

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