[PATCH 0/4] slab AI fixes

From: Vlastimil Babka (SUSE)

Date: Fri Nov 27 2026 - 15:12:40 EST


A bunch of fixes that are marked for stable but not really urgent, based
on patches from Chris Mason, dispatched to slab maintainers by David.

This batch is based on (and intended for) slab/for-7.5/misc

Two fixes for sheaf refill with __GFP_NOFAIL allocations and sheaf
preallocation. Those I've rewritten completely compared to the original
proposals. May improve slab behavior a bit under low memory conditions.

Two fixes related to the rather obscure slub_debug=O boot option, which
can in theory negatively suprise someone trying to use that mode.

Nothing of this should be an exploitable vulnerability, really.

Signed-off-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
---
Chris Mason (2):
mm/slab: keep caches that drop debug flags unmergeable
mm/slab: clear stale layout values in calculate_sizes()

Vlastimil Babka (SUSE) (2):
mm/slab: drop __GFP_NOFAIL when refilling sheaves
mm/slab: handle __GFP_NOFAIL better with prefilled sheaves

mm/slub.c | 35 ++++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
---
base-commit: 152bb61a6134d1d2b736cead67f653ce57ba559b
change-id: 20261127-slab-ai-fixes-a0b04d767c9b