Re: [PATCH v2 3/6] mm/slab: Support disabling SLAB_BUCKETS at boot
From: Chris Down
Date: Fri Nov 13 2026 - 05:31:19 EST
Hi Harry,
Harry Yoo writes:
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.
For what it's worth, I'd still prefer to keep slab_buckets= and
kmalloc_partition= as they are. Each one maps onto one config option and
one cost that you can reason about on its own (about 1 MiB vs 18 MiB in
your numbers). If we want slab_hardening= as well, it seems easy enough
to add later on top, as a way to set the defaults for the individual
parameters. So I don't think it needs to block this.
I'd like to hear what Kees and Marco think too, though.
Thanks!
Chris