Skip to content

Commit

Permalink
Merge tag 'sched_urgent_for_v5.15_rc7' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/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
  • Loading branch information
Linus Torvalds committed Oct 24, 2021
2 parents 16bc177 + 63acd42 commit 6c62666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down

0 comments on commit 6c62666

Please sign in to comment.