Messages in this thread | | | From | Andy Lutomirski <> | Subject | [PATCH 0/6] x86/entry: Fixes | Date | Fri, 26 Jun 2020 10:21:10 -0700 |
| |
Half of this is selftests. The rest adds some confidence-improving assertions and fixes a crash when running on Xen PV.
Andy Lutomirski (6): x86/entry: Assert that syscalls are on the right stack x86/entry: Move SYSENTER's regs->sp and regs->flags fixups into C x86/entry/64/compat: Fix Xen PV SYSENTER frame setup selftests/x86/syscall_nt: Add more flag combinations selftests/x86/syscall_nt: Clear weird flags after each test selftests/x86: Consolidate and fix get/set_eflags() helpers
arch/x86/entry/common.c | 30 ++++++++++++-- arch/x86/entry/entry_32.S | 5 +-- arch/x86/entry/entry_64_compat.S | 12 +++--- arch/x86/xen/xen-asm_64.S | 20 +++++++-- tools/testing/selftests/x86/Makefile | 4 +- tools/testing/selftests/x86/helpers.h | 41 +++++++++++++++++++ .../selftests/x86/single_step_syscall.c | 17 +------- .../testing/selftests/x86/syscall_arg_fault.c | 21 +--------- tools/testing/selftests/x86/syscall_nt.c | 36 ++++++++-------- tools/testing/selftests/x86/test_vsyscall.c | 15 +------ tools/testing/selftests/x86/unwind_vdso.c | 23 +---------- 11 files changed, 118 insertions(+), 106 deletions(-) create mode 100644 tools/testing/selftests/x86/helpers.h
-- 2.25.4
| |