Skip to content

mm/kmemleak: use object_cache instead of kmemleak_initialized

Xiaolei Wang linux-mm lkml 2 versions Applied

Status from this message: [merged mm-stable] rename-kmemleak_initialized-to-kmemleak_late_initialized.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesApplied 2/2
  2. v22 patches 2 repliesSuperseded

Changes in v3 from the cover letter

The comment in set_track_prepare() in patch1 is updated to

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/kmemleak: use object_cache instead of kmemleak_initialized to check in set_track_prepare()mm/kmemleak.c+6 -10 repliesApplied
2/2Rename kmemleak_initialized to kmemleak_late_initializedmm/kmemleak.c+4 -40 repliesApplied

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 v3 thread

Cover letter [PATCH v3 0/2] mm/kmemleak: use object_cache instead of kmemleak_initialized

use object_cache instead of kmemleak_initialized to check in set_track_prepare(), so that memory leaks after kmemleak_init() can be recorded and Rename kmemleak_initialized to kmemleak_late_initialized

unreferenced object 0xc674ca80 (size 64):
comm "swapper/0", pid 1, jiffies 4294938337 (age 204.880s) hex dump (first 32 bytes):
80 55 75 c6 80 54 75 c6 00 55 75 c6 80 52 75 c6 .Uu..Tu..Uu..Ru. 00 53 75 c6 00 00 00 00 00 00 00 00 00 00 00 00 .Su..........

Change in V3:
The comment in set_track_prepare() in patch1 is updated to

/*
* Use object_cache to determine whether kmemleak_init() has
* been invoked.stack_depot_early_init() is called before
* kmemleak_init() in mm_core_init().
*/

Updated the commit log in patch2, Rename kmemleak_initialized to kmemleak_late_initialized indicates that kmemleak_late_init() is complete

Change in V2:
Delete patch1 in v1 version, change patch2, use object_cache instead of kmemleak_initialized to check in set_track_prepare(), so that memory leak after kmemleak_init() can be recorded, and rename kmemleak_initialized to kmemleak_late_initialized

Xiaolei Wang (2):
mm/kmemleak: use object_cache instead of kmemleak_initialized to check
in set_track_prepare()
Rename kmemleak_initialized to kmemleak_late_initialized

 mm/kmemleak.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1