mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 10:17:48 +07:00
1856405862
[ Upstream commit f22b9c219a798e1bf11110a3d2733d883e6da059 ]
The CALL_ON_STACK tests use the no_dat stack to switch to a different
stack for unwinding tests. If an interrupt or machine check happens
while using that stack, and previously being on the async stack, the
interrupt / machine check entry code (SWITCH_ASYNC) will assume that
the previous context did not use the async stack and happily use the
async stack again.
This will lead to stack corruption of the previous context.
To solve this disable both interrupts and machine checks before
switching to the no_dat stack.
Fixes:
|
||
---|---|---|
.. | ||
delay.c | ||
error-inject.c | ||
find.c | ||
Makefile | ||
mem.S | ||
probes.c | ||
spinlock.c | ||
string.c | ||
test_unwind.c | ||
uaccess.c | ||
xor.c |