Skip to content

Commit 6c62666

Browse files
committed
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
2 parents 16bc177 + 63acd42 commit 6c62666

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8795,6 +8795,7 @@ void idle_task_exit(void)
87958795
finish_arch_post_lock_switch();
87968796
}
87978797

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

0 commit comments

Comments
 (0)