Skip to content

Bail out in __stack_depot_save() if the stack_table is not allocated and delete the kmemleak_initialized judgment in set_track_prepare()

Xiaolei Wang linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/stackdepot: Bail out in __stack_depot_save() if the stack_table is not allocatedlib/stackdepot.c+1 -12 replies
2/2mm/kmemleak: No need to check kmemleak_initialized in set_track_prepare()mm/kmemleak.c+0 -26 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Bail out in __stack_depot_save() if the stack_table is not allocated and delete the kmemleak_initialized judgment in set_track_prepare()

patch1 solves the null pointer situation when __stack_depot_save() is called when the stack_table is not initialized.

patch2 solved there is no call trace for the memory leak which object is created before the kmemleak_late_init()

Xiaolei Wang (2):
lib/stackdepot: Bail out in __stack_depot_save() if the stack_table is
not allocated
mm/kmemleak: No need to check kmemleak_initialized in
set_track_prepare()

 lib/stackdepot.c | 2 +-
 mm/kmemleak.c    | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
Signature · 1 line
2.25.1