Skip to contentSkip to conversation

slab updates for 7.4

GIT PULL Merged Harry Yoo 3 participants 4 messages Oct 22 – Oct 23 Memory management

lore
Share & tools
lore

Harry Yoo

author
#0 lore raw

Hi Linus,

please pull the latest slab updates from:

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

There are no known conflicts with other trees.

Thanks,
Harry

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

- Performance improvement of the sheaf prefill API, by allowing the barn to hold a partial sheaf and refilling sheaves from the barn. This improves will-it-scale mmap1 throughput by 24% on the maple_node cache. (Hao Li)

- Restore memcg accounting of ipc msg_msg allocations, lost with e.g. CONFIG_SLAB_BUCKETS=n where the allocations fall back to the general kmalloc caches. (Kees Cook)

- Fix an old race between kmem_cache_destroy() and slab_late_init(), where a cache destroyed late in the boot process tries to release a kobject that was never initialized. (Imre Kaloz)

- Remove slab_folio(), the last use of struct folio in slab code. (Matthew Wilcox)

- Reject kmalloc() requests above KMALLOC_MAX_SIZE explicitly with a warning and NULL return instead of relying on the page allocator's order check. (Zi Yan)

- Various minor fixes and cleanups. (Hao Li, Karl Mehltretter, Kees Cook, Longlong Xia)

----------------------------------------------------------------
The following changes since commit cee9395acd8043be0644b25c34bfa86623f2b935:

Linux 7.3-rc1 (2026-08-30 13:34:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

for you to fetch changes up to d15d7703166daf7bd62c844a3cb1b3a6279adb4c:

mm/slub: initialize the free pointer of the bootstrap kmem_cache_node (2026-10-19 11:57:03 +0100)

----------------------------------------------------------------
slab changes for 7.4

----------------------------------------------------------------
Hao Li (3):
mm/slub: unify slub stat definitions to simplify metric additions mm/slub: make the case handling in __slab_free() easier to follow mm/slub: refill prefilled sheaves from the barn

Imre Kaloz (1):
mm/slab: sample slab_state once in kmem_cache_destroy()

Karl Mehltretter (1):
mm/slub: initialize the free pointer of the bootstrap kmem_cache_node

Kees Cook (2):
mm/slab: Mark the kmem_buckets_create() context as a Context: section ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again

Longlong Xia (1):
mm/slab_common: reject zero object_size before calculate_alignment

Matthew Wilcox (Oracle) (1):
slab: Remove slab_folio()

Zi Yan (1):
mm/slab: reject unsupported kmalloc() sizes

 ipc/msgutil.c    |   3 +-
 mm/slab.h        |  28 ++---
 mm/slab_common.c |  23 ++--
 mm/slub.c        | 329 ++++++++++++++++++++++++++++++++++---------------------
 4 files changed, 228 insertions(+), 155 deletions(-)
Signature · 2 lines
Cheers,
Harry / Hyeonggon
#1 lore raw
Quoted 7 lines · Harry Yoo

Hi Linus,

please pull the latest slab updates from:

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

There are no known conflicts with other trees.

Thanks, Harry!

I felt I should endorse this as it's the first time Harry sends the PR as the co-maintainer and not myself.
I looked into cross-signing the tag but seems like git doesn't support that.

Vlastimil

Quoted 75 lines

Thanks,
Harry

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

- Performance improvement of the sheaf prefill API, by allowing the barn to hold a partial sheaf and refilling sheaves from the barn. This improves will-it-scale mmap1 throughput by 24% on the maple_node cache. (Hao Li)

- Restore memcg accounting of ipc msg_msg allocations, lost with e.g. CONFIG_SLAB_BUCKETS=n where the allocations fall back to the general kmalloc caches. (Kees Cook)

- Fix an old race between kmem_cache_destroy() and slab_late_init(), where a cache destroyed late in the boot process tries to release a kobject that was never initialized. (Imre Kaloz)

- Remove slab_folio(), the last use of struct folio in slab code. (Matthew Wilcox)

- Reject kmalloc() requests above KMALLOC_MAX_SIZE explicitly with a warning and NULL return instead of relying on the page allocator's order check. (Zi Yan)

- Various minor fixes and cleanups. (Hao Li, Karl Mehltretter, Kees Cook, Longlong Xia)

----------------------------------------------------------------
The following changes since commit cee9395acd8043be0644b25c34bfa86623f2b935:

Linux 7.3-rc1 (2026-08-30 13:34:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

for you to fetch changes up to d15d7703166daf7bd62c844a3cb1b3a6279adb4c:

mm/slub: initialize the free pointer of the bootstrap kmem_cache_node (2026-10-19 11:57:03 +0100)

----------------------------------------------------------------
slab changes for 7.4

----------------------------------------------------------------
Hao Li (3):
mm/slub: unify slub stat definitions to simplify metric additions mm/slub: make the case handling in __slab_free() easier to follow mm/slub: refill prefilled sheaves from the barn

Imre Kaloz (1):
mm/slab: sample slab_state once in kmem_cache_destroy()

Karl Mehltretter (1):
mm/slub: initialize the free pointer of the bootstrap kmem_cache_node

Kees Cook (2):
mm/slab: Mark the kmem_buckets_create() context as a Context: section ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again

Longlong Xia (1):
mm/slab_common: reject zero object_size before calculate_alignment

Matthew Wilcox (Oracle) (1):
slab: Remove slab_folio()

Zi Yan (1):
mm/slab: reject unsupported kmalloc() sizes

 ipc/msgutil.c    |   3 +-
 mm/slab.h        |  28 ++---
 mm/slab_common.c |  23 ++--
 mm/slub.c        | 329 ++++++++++++++++++++++++++++++++++---------------------
 4 files changed, 228 insertions(+), 155 deletions(-)
author
#2 lore raw
Quoted 10 lines · Vlastimil Babka (SUSE)
Quoted 7 lines · Harry Yoo

Hi Linus,

please pull the latest slab updates from:

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

There are no known conflicts with other trees.

Thanks, Harry!

No problem ;)
You've been doing the hard work alone for years... now time to help.

Quoted 2 lines

I felt I should endorse this as it's the first time Harry sends the PR as the co-maintainer and not myself.

Thank you for the endorsement, Vlastimil!

Quoted 1 line

I looked into cross-signing the tag but seems like git doesn't support that.

Yeah, apparently not a thing in git.
I see you signed the email instead! :)

Quoted 1 line

Vlastimil

Signature · 2 lines
Cheers,
Harry / Hyeonggon
merge bot Merged
#3 lore raw
In reply to Harry Yoo
The pull request you sent on Thu, 22 Oct 2026 14:10:13 +0100:

The pull request you sent on Thu, 22 Oct 2026 14:10:13 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab.git tags/slab-for-7.4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7a78f7ba9f24962c8033e0152bf34a7903ff61ba

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html