Skip to content

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

Harry Yoo linux-mm lkml stable 1 version New

Get series with b4
b4 am am3qEKonkiyEG_nE@thinkpad

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

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

Ouch, I did not add "PATCH" prefix by mistake. Not sure if it makes stable maintainers life harder.

Fixes for 6.18 and 6.12 will be submitted over few days as I review and test them.

Quoted 10 lines · Harry Yoo

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]

Also, I did not include the first patch from [1]
(mm/slab: fix unbounded recursion in free path with memalloc profiling) as it's already queued for 7.1.

Quoted 16 lines

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
Signature · 2 lines
Cheers,
Harry / Hyeonggon