Commit 45d3291c authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/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
parents 94be133f d2929762
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3657,6 +3657,7 @@ static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se,
		 */
		 */
		deadline = div_s64(deadline * old_weight, weight);
		deadline = div_s64(deadline * old_weight, weight);
		se->deadline = se->vruntime + deadline;
		se->deadline = se->vruntime + deadline;
		if (se != cfs_rq->curr)
			min_deadline_cb_propagate(&se->run_node, NULL);
			min_deadline_cb_propagate(&se->run_node, NULL);
	}
	}