diff options
author | Lai Jiangshan <laijs@linux.alibaba.com> | 2020-04-19 14:40:47 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-06-11 15:14:31 +0200 |
commit | c75890700455113c366f795f3d22ee03623835e8 (patch) | |
tree | 637a95b4386d03974a79d7e8b75324ca22232f0d | |
parent | 26fa1263b0ba35f01a25f4f7e70ba7c44455d1e3 (diff) |
x86/entry/64: Remove unneeded kernel CR3 switching
When native_load_gs_index() fails on .Lgs_change, CR3 must be kernel
CR3. No need to switch it.
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200419144049.1906-2-laijs@linux.alibaba.com
-rw-r--r-- | arch/x86/entry/entry_64.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 609c71e3dba1..87ffa792bc99 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -1334,7 +1334,6 @@ SYM_CODE_START_LOCAL(error_entry) */ SWAPGS FENCE_SWAPGS_USER_ENTRY - SWITCH_TO_KERNEL_CR3 scratch_reg=%rax jmp .Lerror_entry_done .Lbstep_iret: |