[PATCH v4 0/7] net: skb: isolate skb data area allocations into a separate bucket
From: Kees Cook <kees@kernel.org>
Date: 2026-09-21 07:58:20
Also in:
linux-hardening, linux-mm, lkml
Hi! I wanted to get this rolling again, and got the buckets able to handle memcg (GFP_KERNEL_ACCOUNT) with isolation (since it's common due to AF_UNIX), and GFP_DMA with fall back (since it's rare). It gave me an excuse to build out bucket kunit tests too, and that (and LLM review) found a couple other issues that needed fixing too. The bulk of this is mm/slab, but the final patch is netdev, but Jakub had acked it before. I've dropped that Ack since time has passed, but I'm hoping it will get a re-Ack and this whole series can go via slab. Thanks! -Kees v4: - fix a bunch of little things wrong with kmem_buckets - provide cache-type fallback when using buckets - handle memcg when using buckets v3: https://lore.kernel.org/all/20260702170728.168755-1-pfalcato@suse.de/ (local) Kees Cook (6): mm/slab: Mark the kmem_buckets_create() context as a Context: section mm/slab: Give bucket caches the alignment of the caches they mirror mm/slab: Add kmem_buckets_destroy() mm/slab: Add tests for the existing kmem_buckets behaviour mm/slab: Provide kmalloc type fallback for bucket allocations mm/slab: Let a bucket set handle __GFP_ACCOUNT Pedro Falcato (1): net: skb: isolate skb data area allocations into a separate bucket include/linux/slab.h | 59 +++++++- mm/slab.h | 44 +++++- lib/tests/slub_kunit.c | 316 +++++++++++++++++++++++++++++++++++++++++ mm/slab_common.c | 167 ++++++++++++++++++---- net/core/skbuff.c | 11 +- 5 files changed, 566 insertions(+), 31 deletions(-) -- 2.34.1