[GIT PULL] slab fixes for 7.2-rc4

From: Vlastimil Babka (SUSE)

Date: Fri Jul 24 2026 - 08:33:08 EST


Hi Linus,

please pull the latest slab fixes from:

git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-7.2-rc4

Thanks,
Vlastimil

======================================

- Prevent unbounded recursion in free path with memory allocation profiling,
which has caused a stack overflow on a Meta production host due to a
125-deep __free_slab<->kfree recursion. (Harry Yoo)

- Fix type-based partitioning confusing sparse which does not know
__builtin_infer_alloc_token() (Marco Elver)

- Fix a potential memory leak in bulk freeing path on NUMA machines.
(Shengming Hu)

----------------------------------------------------------------
The following changes since commit dc59e4fea9d83f03bad6bddf3fa2e52491777482:

Linux 7.2-rc1 (2026-06-28 12:01:31 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-7.2-rc4

for you to fetch changes up to 5ff172f6c94d282d83cb88bdfec5f647ad9c6105:

slab: silence sparse warning with type-based partitioning (2026-07-21 11:28:21 +0200)

----------------------------------------------------------------
slab fixes for 7.2-rc4

----------------------------------------------------------------
Harry Yoo (Oracle) (4):
mm/slab: fix a memory leak due to bootstrapping sheaves twice
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

Marco Elver (1):
slab: silence sparse warning with type-based partitioning

Shengming Hu (1):
mm/slub: fix lost local objects when bulk remote free batch fills

include/linux/alloc_tag.h | 3 ++
include/linux/slab.h | 25 ++++++++--
lib/alloc_tag.c | 9 ++++
mm/slab.h | 32 ++++++++++--
mm/slab_common.c | 19 +++++++-
mm/slub.c | 121 +++++++++++++++++++---------------------------
6 files changed, 131 insertions(+), 78 deletions(-)