Skip to content

mm/slab: fix unbounded recursion in free path with memalloc profiling

Harry Yoo linux-mm lkml stable 1 version Applied

Status from this message: Queued the series for 7.1, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3mm/slab: decouple SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXTinclude/linux/slab.h mm/slub.c+17 -60 replies
2/3lib/alloc_tag: introduce mem_alloc_profiling_permanently_disabled()include/linux/alloc_tag.h lib/alloc_tag.c+12 -00 replies
3/3mm/slab: prevent unbounded recursion in free path with new kmalloc typeinclude/linux/slab.h mm/slab.h mm/slab_common.c +1 more+75 -590 replies

Reviews trailers per patch

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

PatchVlastimil Babka (SUSE)Suren Baghdasaryan
1/3R-b R-b
2/3A-b
3/3R-b

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

Read the v1 thread

Cover letter [7.1.y 0/3] mm/slab: fix unbounded recursion in free path with memalloc profiling

From: "Harry Yoo" <[email protected]>

This is backport of "mm/slab: fix unbounded recursion in free path with memalloc profiling" series [1] for 7.1.

The last patch has a slight functional difference compared to mainline due to lack of SLAB_ALLOC_* flags. I described those subtlties in the backporting notes in detail.

[1] https://lore.kernel.org/all/[email protected]

Harry Yoo (Oracle) (3):
mm/slab: decouple SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXT lib/alloc_tag: introduce mem_alloc_profiling_permanently_disabled() mm/slab: prevent unbounded recursion in free path with new kmalloc
type

 include/linux/alloc_tag.h |  3 ++
 include/linux/slab.h      | 19 +++++++-
 lib/alloc_tag.c           |  9 ++++
 mm/slab.h                 | 28 ++++++++++-
 mm/slab_common.c          | 13 ++++++
 mm/slub.c                 | 97 +++++++++++++++------------------------
 6 files changed, 104 insertions(+), 65 deletions(-)
Signature · 1 line
2.53.0