+3
−1
Loading
John reported that stress-ng-yield could make his machine unhappy and managed to bisect it to commit b3d99f43 ("sched/fair: Fix zero_vruntime tracking"). The commit in question changes avg_vruntime() from a function that is a pure reader, to a function that updates variables. This turns an unlocked sched/debug usage of this function from a minor mistake into a data corruptor. Fixes: af4cf404 ("sched/fair: Add cfs_rq::avg_vruntime") Fixes: b3d99f43 ("sched/fair: Fix zero_vruntime tracking") Reported-by:John Stultz <jstultz@google.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Vincent Guittot <vincent.guittot@linaro.org> Tested-by:
K Prateek Nayak <kprateek.nayak@amd.com> Tested-by:
John Stultz <jstultz@google.com> Link: https://patch.msgid.link/20260401132355.196370805@infradead.org