Re: [PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Juergen Gross
On 25.06.24 10:33, Jan Beulich wrote: On 25.06.2024 10:27, Juergen Gross wrote: In case cpu_schedule_up() is failing to allocate memory for struct sched_resource, Or (just to mention it again) in case the function isn't called at all because some earlier CPU_UP_PREPARE handler fails. This re

Re: [PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Jürgen Groß
On 25.06.24 10:33, Jan Beulich wrote: On 25.06.2024 10:27, Juergen Gross wrote: In case cpu_schedule_up() is failing to allocate memory for struct sched_resource, Or (just to mention it again) in case the function isn't called at all because some earlier CPU_UP_PREPARE handler fails. cpu_sch

Re: [PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Jan Beulich
On 25.06.2024 10:27, Juergen Gross wrote: > In case cpu_schedule_up() is failing to allocate memory for struct > sched_resource, Or (just to mention it again) in case the function isn't called at all because some earlier CPU_UP_PREPARE handler fails. > cpu_schedule_down() will be called with the

[PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Juergen Gross
In case cpu_schedule_up() is failing to allocate memory for struct sched_resource, cpu_schedule_down() will be called with the sched_resource pointer being NULL. This needs to be handled. Reported-by: Jan Beulich Fixes: 207589dbacd4 ("xen/sched: move per cpu scheduler private data into struct sc