linux/arch/x86/entry
Andy Lutomirski ffae641f57 x86/entry/64/compat: Fix Xen PV SYSENTER frame setup
The SYSENTER frame setup was nonsense.  It worked by accident because the
normal code into which the Xen asm jumped (entry_SYSENTER_32/compat) threw
away SP without touching the stack.  entry_SYSENTER_compat was recently
modified such that it relied on having a valid stack pointer, so now the
Xen asm needs to invoke it with a valid stack.

Fix it up like SYSCALL: use the Xen-provided frame and skip the bare
metal prologue.

Fixes: 1c3e5d3f60 ("x86/entry: Make entry_64_compat.S objtool clean")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lkml.kernel.org/r/947880c41ade688ff4836f665d0c9fcaa9bd1201.1593191971.git.luto@kernel.org
2020-07-01 10:00:26 +02:00
..
syscalls vfs: add faccessat2 syscall 2020-05-14 16:44:25 +02:00
vdso Rebase locking/kcsan to locking/urgent 2020-06-11 20:02:46 +02:00
vsyscall y2038: syscall implementation cleanups 2019-12-01 14:00:59 -08:00
calling.h x86/entry: Remove the apic/BUILD interrupt leftovers 2020-06-11 15:15:16 +02:00
common.c x86/entry: Move SYSENTER's regs->sp and regs->flags fixups into C 2020-07-01 10:00:25 +02:00
entry_32.S x86/entry: Move SYSENTER's regs->sp and regs->flags fixups into C 2020-07-01 10:00:25 +02:00
entry_64_compat.S x86/entry/64/compat: Fix Xen PV SYSENTER frame setup 2020-07-01 10:00:26 +02:00
entry_64.S x86/entry: Unbreak __irqentry_text_start/end magic 2020-06-11 15:15:29 +02:00
Makefile x86/entry: Make entry_64_compat.S objtool clean 2020-06-11 15:14:40 +02:00
syscall_32.c x86/entry: Drop asmlinkage from syscalls 2020-03-21 16:03:25 +01:00
syscall_64.c x86/entry: Drop asmlinkage from syscalls 2020-03-21 16:03:25 +01:00
syscall_x32.c x86/entry: Drop asmlinkage from syscalls 2020-03-21 16:03:25 +01:00
thunk_32.S x86/entry: Rename ___preempt_schedule 2020-03-21 16:03:53 +01:00
thunk_64.S x86/entry: Remove the TRACE_IRQS cruft 2020-06-11 15:15:19 +02:00