Skip to content

Commit

Permalink
Merge tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/kernel/git/tip/tip

Pull scheduler fix from Ingo Molnar:
 "Fix a recently introduced use-after-free bug"

* tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/eevdf: Fix heap corruption more
  • Loading branch information
Linus Torvalds committed Oct 21, 2023
2 parents 94be133 + d292976 commit 45d3291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -3657,7 +3657,8 @@ static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se,
*/
deadline = div_s64(deadline * old_weight, weight);
se->deadline = se->vruntime + deadline;
min_deadline_cb_propagate(&se->run_node, NULL);
if (se != cfs_rq->curr)
min_deadline_cb_propagate(&se->run_node, NULL);
}

#ifdef CONFIG_SMP
Expand Down

0 comments on commit 45d3291

Please sign in to comment.