SWAPGS instruction used to switch the GS base to usermode one (currently 0x0) for PERCPU variables accesses is only stable within an uninterruptable context.
Disable interrupts before the stack switch in enter_usermode() and re-enable it via IRET long return.
SWAPGS instruction used to switch the GS base to usermode one (currently 0x0) for PERCPU variables accesses is only stable within an uninterruptable context. Disable interrupts before the stack switch in enter_usermode() and re-enable it via IRET long return.