Re: [PATCH v3 0/6] mm/slab: Support selecting slab hardening features at boot
From: Chris Down
Date: Sun Nov 29 2026 - 00:21:14 EST
Hi Marco,
Marco Elver writes:
>One thing that users may want is an "all off" option, similar to
>mitigations=off, should they wish to get max performance back with a
>single option. So you could consider slab_hardening=off. But at that
>point it may be more consistent to drop slab_buckets= and
>kmalloc_partition= in favor of arguments to slab_hardening=, such as
>slab_hardening=nobuckets,partition. This would mirror mitigations=,
>and should cater to the usecase of slab_hardening=off to get max
>performance with a single option.
That makes sense. In that case, in v4, I will have slab_buckets= and
kmalloc_partition= go away, and slab_hardening= will take "on", "off", and
[no]buckets and [no]partition as a comma separated list.
>But I would not add options such as 'light', 'full'.
Agreed.
Thanks!
Chris