diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-07-23 00:00:05 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-07-24 15:04:59 +0200 |
commit | 167fd210ec0555d371a20435dac7c2c7052df7ed (patch) | |
tree | 49d6ed8cc7f5f6626399ef7c9d796b934a433111 /arch/x86/entry/entry_64.S | |
parent | x86/entry: Use generic syscall entry function (diff) | |
download | wireguard-linux-167fd210ec0555d371a20435dac7c2c7052df7ed.tar.xz wireguard-linux-167fd210ec0555d371a20435dac7c2c7052df7ed.zip |
x86/entry: Use generic syscall exit functionality
Replace the x86 variant with the generic version. Provide the relevant
architecture specific helper functions and defines.
Use a temporary define for idtentry_exit_user which will be cleaned up
seperately.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20200722220520.494648601@linutronix.de
Diffstat (limited to 'arch/x86/entry/entry_64.S')
-rw-r--r-- | arch/x86/entry/entry_64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index d2a00c97e53f..f423ca9e8a51 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -283,7 +283,7 @@ SYM_CODE_START(ret_from_fork) 2: UNWIND_HINT_REGS movq %rsp, %rdi - call syscall_return_slowpath /* returns with IRQs disabled */ + call syscall_exit_to_user_mode /* returns with IRQs disabled */ jmp swapgs_restore_regs_and_return_to_usermode 1: |