Re: [PATCH 2/3] slab: convert setup_slub_debug() to use __core_param_cb()
From: Harry Yoo
Date: Wed Oct 29 2025 - 06:16:40 EST
On Fri, Oct 24, 2025 at 07:06:53PM +0200, Petr Tesarik wrote:
> Use __core_param_cb() to parse the "slab_debug" kernel parameter instead of
> the obsolescent __setup(). For now, the parameter is not exposed in sysfs,
> and no get ops is provided.
>
> There is a slight change in behavior. Before this patch, the following
> parameter would silently turn on full debugging for all slabs:
>
> slub_debug_yada_yada_gotta_love_this=hail_satan!
>
> This syntax is now rejected, and the parameter will be passed to user
> space, making the kernel a holier place.
>
> Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx>
> ---
Good byte to slub_debug_yada_yada_gotta_love_this=hail_satan! :'(
Looks good to me,
Reviewed-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
--
Cheers,
Harry / Hyeonggon