Re: [PATCH 2/3] Documentation: kmemleak: fix stale statements about scanning
Catalin Marinas <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.workflows,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>