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

From: Gregory Price (Meta)

Date: Tue Oct 20 2026 - 22:23:49 EST


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.

--
Gregory Price (Meta) <gourry@xxxxxxxxxx>