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:That makes sense, thanks for clarifying.
However, as far as I can tell this is not the case for secondaries :Secondaries brought up at boot have run their cpuhp thread before SDEI
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.
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.
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