linux-uconsole/arch/x86/entry
Josh Poimboeuf 931b6bfe8a x86/entry/64: Use JMP instead of JMPQ
commit 64dbc122b2 upstream

Somehow the swapgs mitigation entry code patch ended up with a JMPQ
instruction instead of JMP, where only the short jump is needed.  Some
assembler versions apparently fail to optimize JMPQ into a two-byte JMP
when possible, instead always using a 7-byte JMP with relocation.  For
some reason that makes the entry code explode with a #GP during boot.

Change it back to "JMP" as originally intended.

Fixes: 18ec54fdd6 ("x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-06 19:06:58 +02:00
..
syscalls x86: Wire up restartable sequence system call 2018-06-06 11:58:32 +02:00
vdso x86/vdso: Prevent segfaults due to hoisted vclock reads 2019-08-06 19:06:57 +02:00
vsyscall docs: Fix some broken references 2018-06-15 18:10:01 -03:00
calling.h x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations 2019-08-06 19:06:58 +02:00
common.c x86/speculation/mds: Clear CPU buffers on exit to user 2019-05-14 19:17:55 +02:00
entry_32.S x86/entry/32: Fix ENDPROC of common_spurious 2019-07-21 09:03:18 +02:00
entry_64.S x86/entry/64: Use JMP instead of JMPQ 2019-08-06 19:06:58 +02:00
entry_64_compat.S x86/entry/64/compat: Fix stack switching for XEN PV 2019-01-31 08:14:39 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscall_32.c syscalls/x86: Unconditionally enable 'struct pt_regs' based syscalls on x86_64 2018-04-05 16:59:38 +02:00
syscall_64.c syscalls/x86: Unconditionally enable 'struct pt_regs' based syscalls on x86_64 2018-04-05 16:59:38 +02:00
thunk_32.S x86: move exports to actual definitions 2016-08-07 23:47:15 -04:00
thunk_64.S x86: move exports to actual definitions 2016-08-07 23:47:15 -04:00