lkml.org 
[lkml]   [2020]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/6] x86/entry: Fixes
    Date
    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

    \
     
     \ /
      Last update: 2020-06-26 19:22    [W:4.129 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site