]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: convert setup_slub_debug() to use __core_param_cb()
authorPetr Tesarik <ptesarik@suse.com>
Fri, 24 Oct 2025 17:06:53 +0000 (19:06 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 27 Oct 2025 14:11:19 +0000 (15:11 +0100)
commitaed760df8e8ebc2035561e53bef184e6a8240610
tree4c0392318afe5f7730d3247a7ea8fede2eb57787
parentd3722ff57eadbb49ce5d08504dad19ac8d8cee69
slab: convert setup_slub_debug() to use __core_param_cb()

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@suse.com>
Link: https://patch.msgid.link/9674b34861394088c7853edf8e9d2b439fd4b42f.1761324765.git.ptesarik@suse.com
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c