On Mon, Nov 20, 2023 at 06:46:59PM +0100, andrey.konovalov@xxxxxxxxx wrote: > From: Andrey Konovalov <andreyknvl@xxxxxxxxxx> > > Currently, if stack_depot_disable=off is passed to the kernel > command-line after stack_depot_disable=on, stack depot prints a message > that it is disabled, while it is actually enabled. > > Fix this by moving printing the disabled message to > stack_depot_early_init. Place it before the > __stack_depot_early_init_requested check, so that the message is printed > even if early stack depot init has not been requested. > > Also drop the stack_table = NULL assignment from disable_stack_depot, > as stack_table is NULL by default. > > Fixes: e1fdc403349c ("lib: stackdepot: add support to disable stack depot") > Reviewed-by: Marco Elver <elver@xxxxxxxxxx> > Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx> -- Oscar Salvador SUSE Labs