Re: [PATCH-next v2 2/3] sched/isolation: Forbid the boot CPU from being domain isolated

From: Frederic Weisbecker

Date: Mon Nov 23 2026 - 16:34:59 EST


Le Sun, Nov 22, 2026 at 11:12:08PM -0500, Waiman Long a écrit :
> It is reported that with CONFIG_CPUSETS=n, a kernel booted with
> isolcpus=domain,0 hits the BUG() in select_fallback_rq() during boot
> [1]. At boot time, cpu 0 is the only CPU online and an unbound kworker
> cannot be run on a domain isolated CPU causing kernel panic.
>
> Sashiko also reports that domain isolating the boot CPU can break system
> suspend and trigger a BUG_ON() [2]. So it is problematic if the boot CPU
> is domain isolated.
>
> There may be other kernel subsystems that have problem if the boot CPU
> is domain isolated as most of them won't take into account the fact that
> boot CPU is currently allowed to be domain isolated. Given the fact
> that the boot CPU is likely to be disallowed from the nohz_full list,
> it makes sense that we should not allow the boot CPU from being set in
> the isolcpus boot parameter as well. This will also avoid the kind of
> problems listed above.
>
> Do that by clearing the boot CPU from the isolcpus range when it is
> specified in the boot command line. A warning may also be printed when
> that happens. If the users want to have boot CPU in the managed_irq
> or nohz isolation list, a standalone isolcpus boot parameter will be
> needed instead of combining domain and other flags in the same isolcpus
> boot parameter.
>
> This is indeed a change in behavior which is customer visible. So the
> kernel-paremeters.txt is updated to mention the fact that boot CPU
> cannot be isolated.
>
> [1] https://lore.kernel.org/lkml/20261117144817.265109-1-mathieu.desnoyers@xxxxxxxxxxxx
> [2] https://sashiko.dev/#/patchset/20261108180849.1268263-1-longman%40redhat.com
>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs