user_mode_vm removal and associated cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | x86, fault: Use TASK_SIZE_MAX in is_prefetcharch/ | +1 | 0 replies | |
| 2/9 | x86, perf: Fix incorrect TIF_IA32 check in code_segment_basearch/ | +3 | 0 replies | |
| 3/9 | x86: Add user_mode_ignore_vm86arch/ | +17 | 10 replies | |
| 4/9 | x86, perf: Explicitly optimize vm86 handling in code_segment_basearch/ | +7 | 0 replies | |
| 5/9 | x86, traps: Use user_mode_ignore_vm86 where appropriatearch/ | +3 | 0 replies | |
| 6/9 | x86: Make user_mode work correctly if regs came from vm86 modearch/ | +7 | 0 replies | |
| 7/9 | x86, treewide: s/user_mode_vm/user_mode/garch/ arch/ arch/ +14 more | +28 | 0 replies | |
| 8/9 | x86: Remove user_mode_vmarch/ | +0 | 0 replies | |
| 9/9 | x86, traps: Replace some open-coded vm86 checks with v8086_modearch/ | +4 | 0 replies |
Reviews trailers per patch
1 of 9 patches has a Reviewed-by or Acked-by.
| Patch | Borislav Petkov | Andy Lutomirski |
|---|---|---|
| 1/9 | ||
| 2/9 | ||
| 3/9 | A-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.
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