From: Harry Yoo <harry@kernel.org>
To: Kees Cook <kees@kernel.org>
Cc: Chris Down <chris@chrisdown.name>,
Vlastimil Babka <vbabka@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Hao Li <hao.li@linux.dev>, Christoph Lameter <cl@gentwo.org>,
David Rientjes <rientjes@google.com>,
Roman Gushchin <roman.gushchin@linux.dev>,
Marco Elver <elver@google.com>,
GONG Ruiqi <gongruiqi@huaweicloud.com>,
Jonathan Corbet <corbet@lwn.net>,
linux-mm@kvack.org, linux-hardening@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@meta.com
Subject: Re: [PATCH v2 3/6] mm/slab: Support disabling SLAB_BUCKETS at boot
Date: Sun, 1 Nov 2026 18:34:15 +0000 [thread overview]
Message-ID: <aud4gPOUzvHtLYnJ@thinkstation> (raw)
In-Reply-To: <202610302115.8C7AD110@keescook>
A gentle ping to Kees to hear his thoughts on having a bit more
coarse grained boot parameter e.g.) `slab_hardening=` to specify
how much performance/memory is worth sacrificing for enhanced security.
Quoting an email from [1], Harry Yoo wrote:
> On Wed, Oct 28, 2026 at 11:27:37PM +0800, Chris Down wrote:
> > Harry Yoo writes:
> > > If we end up supporting boot-time parameters for hardening,
> > > I think it should be all enabled (or disabled) by:
> > >
> > > slab_hardening=none|light|full
> > > # please feel free to suggest bertter names
> > >
> > > none: "Turn of all of them to maximize performance"
> > >
> > > light: "I'm willying to sacrifice _some_ memory and CPU for security"
> > >
> > > full: "I'm willying to sacrifice more overhead for security
> > >
> > > IMHO more fine-grained knob for each feature doesn't make much sense.
> >
> > I think if we did the 4 knobs that is a good idea. Given now it's two, I
> > think it seems reasonable to keep it as two separate knobs unless you
> > object? Otherwise I think given it will only cover the latter two, it
> > should be something like kmalloc_isolation= instead. Let me know what you
> > think.
>
> There has been constant, steady efforts to add more and more hardening
> features over the last decade. So I'd say slab_hardening= is more
> future proof :-)
>
> Kees or Marco might have more insights on this.
[1] https://lore.kernel.org/linux-mm/auIVIKxjrdXIaUIY@thinkstation
--
Cheers,
Harry / Hyeonggon
next prev parent reply other threads:[~2026-11-01 18:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 6:07 [PATCH v2 0/6] mm/slab: Support selecting slab hardening features " Chris Down
2026-10-29 6:07 ` [PATCH v2 1/6] mm/slab: Enable SLAB_FREELIST_HARDENED by default Chris Down
2026-10-31 4:13 ` Kees Cook
2026-10-29 6:07 ` [PATCH v2 2/6] mm/slab: Enable SLAB_FREELIST_RANDOM " Chris Down
2026-10-31 4:15 ` Kees Cook
2026-10-29 6:08 ` [PATCH v2 3/6] mm/slab: Support disabling SLAB_BUCKETS at boot Chris Down
2026-10-31 4:17 ` Kees Cook
2026-11-01 18:34 ` Harry Yoo [this message]
2026-10-29 6:08 ` [PATCH v2 4/6] slub_kunit: Add a test for the slab_buckets boot parameter Chris Down
2026-10-31 4:22 ` Kees Cook
2026-10-29 6:09 ` [PATCH v2 5/6] mm/slab: Support disabling KMALLOC_PARTITION_CACHES at boot Chris Down
2026-10-31 4:28 ` Kees Cook
2026-10-29 6:09 ` [PATCH v2 6/6] slub_kunit: Add a test for the kmalloc_partition boot parameter Chris Down
2026-10-31 4:29 ` Kees Cook
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=aud4gPOUzvHtLYnJ@thinkstation \
--to=harry@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=kees@kernel.org \
--cc=kernel-team@meta.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@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 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®