Re: [PATCH 2/3] sched/core: Add sched_stack_end_check= boot parameter

From: Randy Dunlap

Date: Tue Oct 27 2026 - 19:35:25 EST




On 10/26/26 11:36 PM, Chris Down wrote:
> +static int __init setup_sched_stack_end_check(char *str)
> +{
> + bool enable;
> +
> + if (kstrtobool(str, &enable)) {
> + pr_warn("Unable to parse sched_stack_end_check=\n");
> + return 0;
> + }

This error branch should return 1 since it handled the command
line parameter -- it just didn't like the "value."

Returning 0 causes the option string to be added to init's
environment, which is not wanted in this case.

--
~Randy