[PATCH v7 0/2] mm/slab, ipc: kmem_buckets kernel-doc and msg_msg accounting fixes
From: Kees Cook
Date: Wed Oct 14 2026 - 01:24:00 EST
Hi!
As Vlastimil suggested[1], these are the first two patches of v6, split
out for 7.4. The rest of the skb buckets series will come back for 7.5.
2/2 now keeps SLAB_ACCOUNT on the msg_msg bucket caches and allocates
with GFP_KERNEL_ACCOUNT as well, so a msg_msg is charged with
CONFIG_SLAB_BUCKETS either way.
Thanks!
-Kees
v7:
- split v6's 1/8 and 2/8 out for 7.4; 3/8 to 8/8 will return for 7.5
(Vlastimil)
- 2/2: keep SLAB_ACCOUNT in kmem_buckets_create(), and add Cc: stable
(Vlastimil, Andrew, Harry)
v6: https://lore.kernel.org/all/20261006092030.got.500-kees@xxxxxxxxxx/
v5: https://lore.kernel.org/all/20261002231120.late.500-kees@xxxxxxxxxx/
v4: https://lore.kernel.org/all/20260921075811.too.775-kees@xxxxxxxxxx/
v3: https://lore.kernel.org/all/20260702170728.168755-1-pfalcato@xxxxxxx/
[1] https://lore.kernel.org/all/be34b92e-e82c-4f69-ac9d-b045081ea418@xxxxxxxxxx/
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
ipc/msgutil.c | 3 ++-
mm/slab_common.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
--
2.55.0