Files
linux/kernel
Peter Zijlstra e08d007f9d sched/debug: Fix avg_vruntime() usage
John reported that stress-ng-yield could make his machine unhappy and
managed to bisect it to commit b3d99f43c7 ("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: af4cf40470 ("sched/fair: Add cfs_rq::avg_vruntime")
Fixes: b3d99f43c7 ("sched/fair: Fix zero_vruntime tracking")
Reported-by: John Stultz <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Tested-by: K Prateek Nayak <[email protected]>
Tested-by: John Stultz <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-04-02 13:42:43 +02:00
..
…
…
…
…
…
…
2026-03-11 12:01:07 +01:00
…
…
2026-01-05 16:43:34 +01:00
…
2025-11-04 08:30:50 +01:00
…
…
…
…
…
2025-10-29 10:29:54 +01:00
2026-01-26 19:07:13 -08:00
…
…
…