Commit 6c62666d authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'sched_urgent_for_v5.15_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Borislav Petkov:
 "Reset clang's Shadow Call Stack on hotplug to prevent it from
  overflowing"

* tag 'sched_urgent_for_v5.15_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/scs: Reset the shadow stack when idle_task_exit
parents 16bc1776 63acd42c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8795,6 +8795,7 @@ void idle_task_exit(void)
		finish_arch_post_lock_switch();
	}

	scs_task_reset(current);
	/* finish_cpu(), as ran on the BP, will clean up the active_mm state */
}