Skip to content
Commit dac61f45 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

x86: fix trampoline stack clobber



We need to lock interrupts before setting the thread's
stack pointer to the trampoline stack. Otherwise, we
could unexpectedly take an interrupt on this stack
instead of the thread stack as intended.

The specific problem happens at the end of the interrupt,
when we switch back to the thread stack and call swap.
Doing this on a per-cpu trampoline stack instead of the
thread stack causes data corruption.

Fixes: #24869

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 7ede80be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment