sched/scs: Reset the shadow stack when idle_task_exit
[platform/kernel/linux-rpi.git] / kernel / sched / core.c
index 6db20a6..e4551d1 100644 (file)
@@ -6677,6 +6677,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 */
 }