Skip to content

user_mode_vm removal and associated cleanups

Andy Lutomirski lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86, fault: Use TASK_SIZE_MAX in is_prefetcharch/x86/mm/fault.c+1 -10 replies
2/9x86, perf: Fix incorrect TIF_IA32 check in code_segment_basearch/x86/kernel/cpu/perf_event.c+3 -40 replies
3/9x86: Add user_mode_ignore_vm86arch/x86/include/asm/ptrace.h+17 -010 replies
4/9x86, perf: Explicitly optimize vm86 handling in code_segment_basearch/x86/kernel/cpu/perf_event.c+7 -60 replies
5/9x86, traps: Use user_mode_ignore_vm86 where appropriatearch/x86/kernel/traps.c+3 -30 replies
6/9x86: Make user_mode work correctly if regs came from vm86 modearch/x86/include/asm/ptrace.h+7 -100 replies
7/9x86, treewide: s/user_mode_vm/user_mode/garch/x86/kernel/alternative.c arch/x86/kernel/crash.c arch/x86/kernel/dumpstack.c +14 more+28 -280 replies
8/9x86: Remove user_mode_vmarch/x86/include/asm/ptrace.h+0 -50 replies
9/9x86, traps: Replace some open-coded vm86 checks with v8086_modearch/x86/kernel/traps.c+4 -70 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchBorislav PetkovAndy Lutomirski
1/9
2/9
3/9A-b A-b
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] user_mode_vm removal and associated cleanups

Hi all-

The user_mode vs user_mode_vm distinction scares me. Let's fix it. This series adds user_mode_ignore_vm86, makes user_mode reliable, and removes user_mode_vm. It also tidies up a couple warts I found along the way.

This survives basic testing, but I haven't tried that hard to test it.

Thoughts?

Ingo, this may conflict a bit with the do_debug and do_bounds fixes.

Andy Lutomirski (9):
x86, fault: Use TASK_SIZE_MAX in is_prefetch
x86, perf: Fix incorrect TIF_IA32 check in code_segment_base
x86: Add user_mode_ignore_vm86
x86, perf: Explicitly optimize vm86 handling in code_segment_base x86, traps: Use user_mode_ignore_vm86 where appropriate
x86: Make user_mode work correctly if regs came from vm86 mode x86, treewide: s/user_mode_vm/user_mode/g
x86: Remove user_mode_vm
x86, traps: Replace some open-coded vm86 checks with v8086_mode

 arch/x86/include/asm/ptrace.h    | 33 +++++++++++++++++++++------------
 arch/x86/kernel/alternative.c    |  2 +-
 arch/x86/kernel/cpu/perf_event.c | 20 ++++++++++----------
 arch/x86/kernel/crash.c          |  2 +-
 arch/x86/kernel/dumpstack.c      |  4 ++--
 arch/x86/kernel/dumpstack_32.c   |  4 ++--
 arch/x86/kernel/i387.c           |  2 +-
 arch/x86/kernel/irq_32.c         |  2 +-
 arch/x86/kernel/irq_64.c         |  2 +-
 arch/x86/kernel/kgdb.c           |  4 ++--
 arch/x86/kernel/kprobes/core.c   |  4 ++--
 arch/x86/kernel/process_32.c     |  2 +-
 arch/x86/kernel/ptrace.c         |  2 +-
 arch/x86/kernel/time.c           |  2 +-
 arch/x86/kernel/traps.c          | 29 +++++++++++++----------------
 arch/x86/kernel/uprobes.c        |  2 +-
 arch/x86/mm/fault.c              |  8 ++++----
 arch/x86/oprofile/backtrace.c    |  2 +-
 drivers/misc/sgi-xp/xpc_main.c   |  2 +-
 19 files changed, 67 insertions(+), 61 deletions(-)
Signature · 1 line
2.3.0