Re: [PATCH v3 0/6] mm/slab: Support selecting slab hardening features at boot
From: Chris Down
Date: Sun Nov 29 2026 - 00:21:18 EST
Hi Harry,
Harry Yoo writes:
>> I'd rather mirror hardened_usercopy= instead of mitigations=off.
>>
>> slab_hardening=on (turn on all slab hardening features)
>> slab_hardening=off (turn off all slab hardening features)
>> (Otherwise it is determined by CONFIG_*.)
>
>Should have been CONFIG_*_DEFAULT_ON.
Sure, I'd like v4 to take "on" and "off" for the buckets and partitions,
with one SLAB_HARDENING_DEFAULT_ON for the default, like
HARDENED_USERCOPY_DEFAULT_ON.
>> I hope we don't reach this point, but more fine-grained control should
>> be achivable if it is indeed required.
Marco's list syntax also gives us [no]buckets and [no]partition without
any extra parameters, so v4 will have them too. The buckets only cost
about 1 MiB by your numbers and the partitions about 18 MiB, so a
memory-conscious host can keep the buckets with slab_hardening=nopartition.
Thanks!
Chris