Skip to content

mm/slab, ipc: kmem_buckets kernel-doc and msg_msg accounting fixes

Kees Cook cgroups linux-hardening linux-mm lkml stable 4 versions – Applied

Status from this message: Applied to mm/slab.git slab/for-7.4/misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 3 repliesApplied
  2. v68 patches 18 repliesSuperseded
  3. v57 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v47 patches15 repliesSuperseded

Changes in v7 from the cover letter

- 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/[email protected]/
v5: https://lore.kernel.org/all/[email protected]/
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/

[1] https://lore.kernel.org/all/[email protected]/

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/2mm/slab: Mark the kmem_buckets_create() context as a Context: sectionmm/slab_common.c+2 -20 replies
2/2ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT againipc/msgutil.c+2 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHarry Yoo (Meta)Pedro FalcatoHao LiVlastimil Babka (SUSE)
1/2R-b A-b R-b A-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/2] mm/slab, ipc: kmem_buckets kernel-doc and msg_msg accounting fixes

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/[email protected]/
v5: https://lore.kernel.org/all/[email protected]/
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/

[1] https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.55.0