Re: [PATCH] sched/topology: Initialize sd_span after assignment to *sd
From: K Prateek Nayak
Date: Mon Mar 23 2026 - 13:37:50 EST
Hello Peter,
On 3/23/2026 3:06 PM, Peter Zijlstra wrote:
> However the way we allocate space for flex arrays is: sizeof(*obj) +
> count * sizeof(*obj->member); this means that we do have sufficient
> space, irrespective of this extra padding.
>
>
> Does this work?
Solves the panic on the setup shared by Nathan and KASAN hasn't
noted anything in my baremetal testing so feel free to include:
Tested-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>
--
Thanks and Regards,
Prateek