Skip to content

x86/vm86: First round of vm86 cleanups

Brian Gerst lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/vm86: Move userspace accesses to do_sys_vm86()arch/x86/kernel/vm86_32.c+27 -344 replies
2/5x86/vm86: Move vm86 fields out of thread_structarch/x86/include/asm/processor.h arch/x86/include/asm/vm86.h arch/x86/kernel/process.c +2 more+53 -340 replies
3/5x86/vm86: Move fields from kernel_vm86_structarch/x86/include/asm/vm86.h arch/x86/kernel/vm86_32.c+33 -320 replies
4/5x86/vm86: Eliminate kernel_vm86_structarch/x86/include/asm/vm86.h arch/x86/kernel/vm86_32.c+29 -640 replies
5/5x86/vm86: Use the normal pt_regs area for vm86arch/x86/entry/entry_32.S arch/x86/include/asm/thread_info.h arch/x86/include/asm/vm86.h +2 more+69 -1040 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/5] x86/vm86: First round of vm86 cleanups

The goal of this set of patches is to change vm86 support to return to userspace with the normal exit paths instead of leaving data on the kernel stack and jumping directly into the exit asm routines. This fixes issues like ptrace and syscall auditing not working with vm86, and makes possible cleanups in the syscall exit work code.

 arch/x86/entry/entry_32.S          |  24 +---
 arch/x86/include/asm/processor.h   |  11 +-
 arch/x86/include/asm/thread_info.h |  11 +-
 arch/x86/include/asm/vm86.h        |  36 ++---
 arch/x86/kernel/process.c          |   7 +
 arch/x86/kernel/signal.c           |   3 +
 arch/x86/kernel/vm86_32.c          | 265 ++++++++++++++++---------------------
 arch/x86/mm/fault.c                |   4 +-
 8 files changed, 152 insertions(+), 209 deletions(-)