From: sashiko-bot@kernel.org
To: "Chris Down" <chris@chrisdown.name>,
"Vlastimil Babka" <vbabka@kernel.org>,
"Harry Yoo" <harry@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: "Hao Li" <hao.li@linux.dev>, "Christoph Lameter" <cl@gentwo.org>,
"David Rientjes" <rientjes@google.com>,
"Roman Gushchin" <roman.gushchin@linux.dev>,
"Kees Cook" <kees@kernel.org>, "Marco Elver" <elver@google.com>,
"GONG Ruiqi" <gongruiqi@huaweicloud.com>,
"Jonathan Corbet" <corbet@lwn.net>,
linux-mm@kvack.org, kernel-team@meta.com
Subject: Re: [PATCH v3 3/6] mm/slab: Support disabling SLAB_BUCKETS at boot
Date: Sat, 14 Nov 2026 08:52:11 +0000 [thread overview]
Message-ID: <sashiko-outbox-214306@kernel.org> (raw)
In-Reply-To: <843f0f05bbe3ff36efd22d490e83b0260f8d2f81.1794506262.git.chris@chrisdown.name>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mm/slab: setup_slab_buckets() adds per-feature knob instead of
slab_hardening
--
commit d1769f1af5f0bdc819b4474cbb49e0bbed23c8ff
Author: Chris Down <chris@chrisdown.name>
mm/slab: Support disabling SLAB_BUCKETS at boot
This commit adds a slab_buckets= early boot parameter to allow disabling
separate kmalloc buckets on kernels built with CONFIG_SLAB_BUCKETS=y.
> diff --git a/mm/slab_common.c b/mm/slab_common.c
> index 01c64ef661e7f..272d22f411c2c 100644
> --- a/mm/slab_common.c
> +++ b/mm/slab_common.c
> @@ -410,6 +410,16 @@ EXPORT_SYMBOL(__kmem_cache_create_args);
>
> static struct kmem_cache *kmem_buckets_cache __ro_after_init;
>
> +static bool slab_buckets_enabled __ro_after_init = IS_ENABLED(CONFIG_SLAB_BUCKETS);
> +
> +static int __init setup_slab_buckets(char *str)
> +{
> + if (!IS_ENABLED(CONFIG_SLAB_BUCKETS))
> + return 0;
> + return kstrtobool(str, &slab_buckets_enabled);
> +}
> +early_param("slab_buckets", setup_slab_buckets);
[Severity: Low]
As reported by Harry Yoo on v1 [1], should boot-time slab hardening controls
use a single coarse-grained parameter such as slab_hardening= rather than
introducing separate per-feature knobs like slab_buckets= here and
kmalloc_partition= in commit "mm/slab: Support disabling
KMALLOC_PARTITION_CACHES at boot"?
[1] https://lore.kernel.org/r/auIN44CnAyzvR_Ll@thinkstation
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1794506262.git.chris@chrisdown.name?part=3
next prev parent reply other threads:[~2026-11-14 8:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 8:51 [PATCH v3 0/6] mm/slab: Support selecting slab hardening features at boot Chris Down
2026-11-13 8:51 ` [PATCH v3 1/6] mm/slab: Enable SLAB_FREELIST_HARDENED by default Chris Down
2026-11-13 8:51 ` [PATCH v3 2/6] mm/slab: Enable SLAB_FREELIST_RANDOM " Chris Down
2026-11-13 8:51 ` [PATCH v3 3/6] mm/slab: Support disabling SLAB_BUCKETS at boot Chris Down
2026-11-14 8:52 ` sashiko-bot [this message]
2026-11-13 8:51 ` [PATCH v3 4/6] slub_kunit: Add a test for the slab_buckets boot parameter Chris Down
2026-11-13 8:51 ` [PATCH v3 5/6] mm/slab: Support disabling KMALLOC_PARTITION_CACHES at boot Chris Down
2026-11-13 19:42 ` kernel test robot
2026-11-13 21:38 ` kernel test robot
2026-11-13 8:51 ` [PATCH v3 6/6] slub_kunit: Add a test for the kmalloc_partition boot parameter Chris Down
2026-11-13 10:56 ` [PATCH v3 0/6] mm/slab: Support selecting slab hardening features at boot Marco Elver
2026-11-13 18:36 ` Harry Yoo
2026-11-13 18:48 ` Harry Yoo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-214306@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=chris@chrisdown.name \
--cc=cl@gentwo.org \
--cc=corbet@lwn.net \
--cc=elver@google.com \
--cc=gongruiqi@huaweicloud.com \
--cc=hao.li@linux.dev \
--cc=harry@kernel.org \
--cc=kees@kernel.org \
--cc=kernel-team@meta.com \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.