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

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
...@@ -8795,6 +8795,7 @@ void idle_task_exit(void) ...@@ -8795,6 +8795,7 @@ void idle_task_exit(void)
finish_arch_post_lock_switch(); finish_arch_post_lock_switch();
} }
scs_task_reset(current);
/* finish_cpu(), as ran on the BP, will clean up the active_mm state */ /* finish_cpu(), as ran on the BP, will clean up the active_mm state */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment