mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/7] net: skb: isolate skb data area allocations into a separate bucket
@ 2026-09-21  7:58 Kees Cook
  2026-09-21  7:58 ` [PATCH v4 1/7] mm/slab: Mark the kmem_buckets_create() context as a Context: section Kees Cook
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Kees Cook @ 2026-09-21  7:58 UTC (permalink / raw)
  To: Vlastimil Babka, Pedro Falcato
  Cc: Kees Cook, Jakub Kicinski, David S. Miller, Harry Yoo,
	Andrew Morton, Hao Li, Christoph Lameter, David Rientjes,
	Roman Gushchin, Eric Dumazet, Paolo Abeni, Simon Horman,
	Jason Xing, Kuniyuki Iwashima, Björn Töpel,
	Jiayuan Chen, Willem de Bruijn, linux-kernel, linux-mm, netdev,
	linux-hardening

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/

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-09-22 10:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21  7:58 [PATCH v4 0/7] net: skb: isolate skb data area allocations into a separate bucket Kees Cook
2026-09-21  7:58 ` [PATCH v4 1/7] mm/slab: Mark the kmem_buckets_create() context as a Context: section Kees Cook
2026-09-21 12:03   ` Harry Yoo
2026-09-22  9:58   ` Pedro Falcato
2026-09-21  7:58 ` [PATCH v4 2/7] mm/slab: Give bucket caches the alignment of the caches they mirror Kees Cook
2026-09-21 13:17   ` Harry Yoo
2026-09-21 23:25     ` Kees Cook
2026-09-21  7:58 ` [PATCH v4 3/7] mm/slab: Add kmem_buckets_destroy() Kees Cook
2026-09-21  7:58 ` [PATCH v4 4/7] mm/slab: Add tests for the existing kmem_buckets behaviour Kees Cook
2026-09-21  7:58 ` [PATCH v4 5/7] mm/slab: Provide kmalloc type fallback for bucket allocations Kees Cook
2026-09-22 10:11   ` Pedro Falcato
2026-09-21  7:58 ` [PATCH v4 6/7] mm/slab: Let a bucket set handle __GFP_ACCOUNT Kees Cook
2026-09-21 13:25   ` Harry Yoo
2026-09-21 23:26     ` Kees Cook
2026-09-22 10:20   ` Pedro Falcato
2026-09-21  7:58 ` [PATCH v4 7/7] net: skb: isolate skb data area allocations into a separate bucket Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®