Re: [PATCH 3/3] arm64: head: set __entry_task along with task setup

From: Ada Couprie Diaz

Date: Mon Nov 23 2026 - 06:27:57 EST


Hi Kyril,

On 19/11/2026 17:09, Kiryl Shutsemau (Meta) wrote:
On Wed, Nov 18, 2026 at 03:30:06PM +0000, Ada Couprie Diaz wrote:
However, as far as I can tell this is not the case for secondaries :
their first task on boot is set to the idle task, which they go to
without switching until (and unless) something gets scheduled on the core.
This would be the same path taken for CPU hotplug.
Secondaries brought up at boot have run their cpuhp thread before SDEI
probes: smp_init() comes before the initcalls. A CPU that was online
before still has its idle task in __entry_task. So only a CPU onlined
for the first time after SDEI probed can see NULL there.
That makes sense, thanks for clarifying.
So there is a very small window, only on first booting secondaries,
where we could see this issue, but it does exist.

Kind regards,
Ada