[RFC][PATCH 18/24] x86/pti: Execute system vector handlers on the kernel stack

2020-11-09 Thread Alexandre Chartre
After an interrupt/exception in userland, the kernel is entered and it switches the stack to the PTI stack which is mapped both in the kernel and in the user page-table. When executing the interrupt function, switch to the kernel stack (which is mapped only in the kernel page-table) so that no kern

[RFC][PATCH 18/24] x86/pti: Execute system vector handlers on the kernel stack

2020-11-09 Thread Alexandre Chartre
After an interrupt/exception in userland, the kernel is entered and it switches the stack to the PTI stack which is mapped both in the kernel and in the user page-table. When executing the interrupt function, switch to the kernel stack (which is mapped only in the kernel page-table) so that no kern