[GIT PULL] slab updates for 6.13 v2

From: Vlastimil Babka
Date: Mon Nov 25 2024 - 05:08:37 EST


Hi Linus,

please pull the latest slab updates from:

git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-6.13-v2

One new feature and non-critical fixes (mostly related to debugging).
No conflicts to be expected, AFAIK.

After fixing up the bug that was in the v1 pull 9 days ago, I've only added
Geert's fix on top 5 days ago, and it was all in -next.

Thanks,
Vlastimil

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

- Add new slab_strict_numa boot parameter to enforce per-object memory policies
on top of slab folio policies, for systems where saving cost of remote
accesses is more important than minimizing slab allocation overhead
(Christoph Lameter)

- Fix for freeptr_offset alignment check being too strict for m68k (Geert
Uytterhoeven)

- krealloc() fixes for not violating __GFP_ZERO guarantees on krealloc() when
slub_debug (redzone and object tracking) is enabled (Feng Tang)

- Fix a memory leak in case sysfs registration fails for a slab cache, and also
no longer fail to create the cache in that case (Hyeonggon Yoo)

- Fix handling of detected consistency problems (due to buggy slab user) with
slub_debug enabled, so that it does not cause further list corruption bugs
(yuan.gao)

- Code cleanup and kerneldocs polishing (Zhen Lei, Vlastimil Babka)

----------------------------------------------------------------
Christoph Lameter (1):
SLUB: Add support for per object memory policies

Feng Tang (5):
mm/kasan: Don't store metadata inside kmalloc object when slub_debug_orig_size is on
mm/slub: Move krealloc() and related code to slub.c
mm/slub: Consider kfence case for get_orig_size()
mm/slub: Improve redzone check and zeroing for krealloc()
mm/slub, kunit: Add testcase for krealloc redzone and zeroing

Geert Uytterhoeven (1):
slab: Fix too strict alignment check in create_cache()

Hyeonggon Yoo (1):
mm/slab: Allow cache creation to proceed even if sysfs registration fails

Vlastimil Babka (2):
mm, slab: add kerneldocs for common SLAB_ flags
Merge branch 'slab/for-6.13/features' into slab/for-next

Zhen Lei (1):
mm/slab: remove duplicate check in create_cache()

yuan.gao (1):
mm/slub: Avoid list corruption when removing a slab from the full list

Documentation/admin-guide/kernel-parameters.txt | 10 ++
Documentation/mm/slub.rst | 9 +
include/linux/slab.h | 60 ++++---
lib/slub_kunit.c | 42 +++++
mm/kasan/generic.c | 7 +-
mm/slab.h | 11 ++
mm/slab_common.c | 103 ++---------
mm/slub.c | 218 +++++++++++++++++++++---
8 files changed, 324 insertions(+), 136 deletions(-)