amd64: remove lfence after swapgs on syscall entry

(cherry picked from commit 7aa47cace1)
This commit is contained in:
Konstantin Belousov 2021-08-25 22:28:57 +03:00
parent c59594cb30
commit ebc0d29e14

View file

@ -525,7 +525,6 @@ prot_addrf:
SUPERALIGN_TEXT
IDTVEC(fast_syscall_pti)
swapgs
lfence
cmpq $~0,PCPU(UCR3)
je fast_syscall_common
movq %rax,PCPU(SCRATCH_RAX)
@ -536,7 +535,6 @@ IDTVEC(fast_syscall_pti)
SUPERALIGN_TEXT
IDTVEC(fast_syscall)
swapgs
lfence
fast_syscall_common:
movq %rsp,PCPU(SCRATCH_RSP)
movq PCPU(RSP0),%rsp