Re: [PATCH v2] mm: kmemleak: scan modified objects as soon as they are grayed
From: Breno Leitao
Date: Mon Nov 02 2026 - 06:08:28 EST
Hello Andrew,
On Fri, Oct 30, 2026 at 12:06:25PM -0700, Andrew Morton wrote:
> On Fri, 30 Oct 2026 11:31:10 -0700 Breno Leitao <leitao@xxxxxxxxxx> wrote:
> >
> > Scanning the gray list after every grayed object made a full scan 41%
> > slower (1.72s -> 2.42s, arm64 guest with lockdep) when the pass grays a
> > million objects that do not point to each other. Scanning it at most
> > once a jiffy keeps that at the baseline, leaves idle, file storm and
> > mmap churn workloads unchanged, and still removes the false positives
> > at HZ=100.
>
> Thanks. I'm thinking
>
> Fixes: 04609ccc40c4 ("kmemleak: Reduce the false positives by checking for modified objects")
> cc:stable
>
> Agreed?
Maybe, I think this is a another new way to fix false positives rather
than a issue/bug fix itself, so, I would keep the Fixes:/Stable: tags
out of this one.
Thanks for asking,
--breno