Skip to content

x86: Clean up SYSRET/SYSEXIT validation

Brian Gerst lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86-64: Move SYSRET validation code to Carch/x86/entry/calling.h arch/x86/entry/common.c arch/x86/entry/entry_64.S +1 more+60 -790 replies
2/3x86-32: Remove SEP test for SYSEXITarch/x86/entry/common.c+1 -20 replies
3/3x86: Clean up do_fast_syscall_32() testsarch/x86/entry/common.c arch/x86/entry/entry_32.S arch/x86/entry/entry_64_compat.S +2 more+48 -590 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] x86: Clean up SYSRET/SYSEXIT validation

This series cleans up the tests for using the SYSRET or SYSEXIT instructions on exit from a syscall, moving some code from assembly to C and merging native and compat tests.

Brian Gerst (3):
x86-64: Move SYSRET validation code to C
x86-32: Remove SEP test for SYSEXIT
x86: Clean up do_fast_syscall_32() tests

 arch/x86/entry/calling.h         |  10 +--
 arch/x86/entry/common.c          | 142 ++++++++++++++++++++-----------
 arch/x86/entry/entry_32.S        |   6 +-
 arch/x86/entry/entry_64.S        |  71 +---------------
 arch/x86/entry/entry_64_compat.S |  13 +--
 arch/x86/include/asm/segment.h   |   1 +
 arch/x86/include/asm/syscall.h   |   4 +-
 7 files changed, 108 insertions(+), 139 deletions(-)

base-commit: bccf9048549afe54b3c6bc8979ebfddea748da85

Signature · 1 line
2.26.2