Re: [PATCH 2/3] Documentation: kmemleak: fix stale statements about scanning
From: Catalin Marinas
Date: Fri Sep 18 2026 - 05:19:33 EST
On Thu, Sep 17, 2026 at 06:47:36AM -0700, Breno Leitao wrote:
> Three statements in the "false positives/negatives" and "Limitations"
> sections have never matched the code:
>
> - task stack scanning is on by default (kmemleak_stack_scan = 1), as
> the parameter list earlier in the same document already states;
>
> - MSECS_MIN_AGE has been 5000, not 1000, since the initial commit;
>
> - scanning is done by a periodic kthread. Reading the debugfs file
> only lists what the last scan found; kmemleak_open() calls
> seq_open() and never scans.
>
> Fixes: 04f70336c80c ("kmemleak: Add documentation on the memory leak detector")
> Fixes: e0a2a1601bec ("kmemleak: Enable task stacks scanning by default")
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>