Skip to content

kmemleak: support for percpu memory leak detect

Pavel Tikhomirov linux-mm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew 1 of 2 applied
  2. v12 patches 3 repliesSuperseded 1 of 2 applied

Patches in v2 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2kmemleak: enable tracking for percpu pointersmm/kmemleak.c+94 -590 repliesApplied
2/2kmemleak-test: add percpu leaksamples/kmemleak/kmemleak-test.c+2 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchCatalin Marinas
1/2R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] kmemleak: support for percpu memory leak detect

This is a rework of this series:
https://lore.kernel.org/lkml/[email protected]/

Originally I was investigating a percpu leak on our customer nodes and having this functionality was a huge help, which lead to this fix [1].

So probably it's a good idea to have it in mainstream too, especially as after [2] it became much easier to implement (we already have a separate tree for percpu pointers).

commit 0af8c09c89681 ("netfilter: x_tables: fix percpu counter block leak on error path when creating new netns") [1]
commit 39042079a0c24 ("kmemleak: avoid RCU stalls when freeing metadata for per-CPU pointers") [2]

Pavel Tikhomirov (2):
kmemleak: enable tracking for percpu pointers
kmemleak-test: add percpu leak

 mm/kmemleak.c                    | 153 +++++++++++++++++++------------
 samples/kmemleak/kmemleak-test.c |   2 +
 2 files changed, 96 insertions(+), 59 deletions(-)
Signature · 1 line
2.45.2