Scheduler fixes:

 - Fix MM CID affinity-triggered switch back to per-task mode
   (Hui Su)

 - Fix scheduling regression observed on AMD Ryzen
   AI HX 370 systems, caused by cache aware scheduling
   incorrectly overriding asym packing placement (Tim Chen)

 - Fix stale get_pref_llc() prototype for !CONFIG_SCHED_CACHE
   (Yafang Shao)

Signed-off-by: Ingo Molnar <mingo@kernel.org>
sched: fix stale get_pref_llc() stub for !CONFIG_SCHED_CACHE

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@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Gregory Price (Meta) <gourry@gourry.net>
Reviewed-by: Chen Yu <yu.c.chen@intel.com>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Cc: <stable@vger.kernel.org> #v7.2.x
Link: https://patch.msgid.link/20261023023105.28829-2-laoar.shao@gmail.com
1 file changed