Re: [RFC PATCH v3 bpf-next 1/5] sched: fix stale get_pref_llc() stub for !CONFIG_SCHED_CACHE

From: Yafang Shao

Date: Wed Oct 21 2026 - 01:47:19 EST


On Wed, Oct 21, 2026 at 10:23 AM Gregory Price (Meta) <gourry@xxxxxxxxxx> wrote:
>
> On 2026-10-19 14:41 +0800, Yafang Shao wrote:
> > Commit b636fef85bda ("sched/cache: Introduce task_struct->sched_cache_grp
> > to fix UAF") switched get_pref_llc() from taking a struct mm_struct * to
> > taking the task's struct sched_cache_group *, but only updated the
> > CONFIG_SCHED_CACHE definition and its caller: the stub in the
> > !CONFIG_SCHED_CACHE branch kept the old mm_struct parameter.
> >
> > Fixes: b636fef85bda ("sched/cache: Introduce task_struct->sched_cache_grp to fix UAF")
> > Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
> > Cc: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>
> > Cc: Chen Yu <yu.c.chen@xxxxxxxxx>
>
>
> Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>
>
> Please submit fixes like these separate from your series.

Thanks for the review.
I will send them separately.

--
Regards
Yafang