Re: [PATCH] sched/fair: Fix overflow in vruntime_eligible() causing NULL return
From: Peter Zijlstra
Date: Thu Jul 10 2025 - 07:14:07 EST
On Thu, Jul 10, 2025 at 10:01:15AM +0800, Zicheng Qu wrote:
> Hi,
>
> Based on LTS 6.6. I also looked at the code logic around vruntime_eligible()
> in the mainline. It seems that if vruntime_eligible() consistently returned
> false, this could lead to null pointer dereferences.
That is a truly ancient kernel. Please verify the issue is reproducible
on something recent.
Specifically, commit bbce3de72be5 ("sched/eevdf: Fix se->slice being set
to U64_MAX and resulting crash") cured something very similar to this.