Skip to content

x86/entry: Fixes and cleanups

Andy Lutomirski lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 7 repliesApplied
  2. v16 patches 4 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6x86/entry/compat: Clear RAX high bits on Xen PV SYSENTERarch/x86/entry/entry_64_compat.S+10 -90 replies
2/6x86/entry, selftests: Further improve user entry sanity checksarch/x86/entry/common.c tools/testing/selftests/x86/syscall_nt.c+30 -02 replies
3/6x86/entry/xen: Route #DB correctly on Xen PVarch/x86/include/asm/idtentry.h arch/x86/kernel/traps.c arch/x86/xen/enlighten_pv.c +1 more+44 -253 replies
4/6x86/entry/32: Fix #MC and #DB wiring on x86_32arch/x86/include/asm/idtentry.h arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/traps.c+17 -120 replies
5/6x86/ldt: Disable 16-bit segments on Xen PVarch/x86/kernel/ldt.c+34 -11 reply
6/6x86/entry: Rename idtentry_enter/exit_cond_rcu() to idtentry_enter/exit()arch/x86/entry/common.c arch/x86/include/asm/idtentry.h arch/x86/kernel/kvm.c +3 more+54 -430 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)Andy Lutomirski
SeriesA-b
1/6
2/6A-b
3/6
4/6
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH entry v2 0/6] x86/entry: Fixes and cleanups

These are in priority order. Patch 1 could be folded into the patch it fixes. The selftests improve my confidence in the correctness of the whole pile. The next two patches fix IDTENTRY miswiring. The last two are optional and could easily wait until the next merge window.

Andy Lutomirski (6):
x86/entry/compat: Clear RAX high bits on Xen PV SYSENTER x86/entry, selftests: Further improve user entry sanity checks x86/entry/xen: Route #DB correctly on Xen PV x86/entry/32: Fix #MC and #DB wiring on x86_32 x86/ldt: Disable 16-bit segments on Xen PV x86/entry: Rename idtentry_enter/exit_cond_rcu() to
idtentry_enter/exit()

 arch/x86/entry/common.c                  | 69 +++++++++++++++-------
 arch/x86/entry/entry_64_compat.S         | 19 +++---
 arch/x86/include/asm/idtentry.h          | 75 +++++++++++-------------
 arch/x86/kernel/cpu/mce/core.c           |  4 +-
 arch/x86/kernel/kvm.c                    |  6 +-
 arch/x86/kernel/ldt.c                    | 35 ++++++++++-
 arch/x86/kernel/traps.c                  | 20 +++++--
 arch/x86/mm/fault.c                      |  6 +-
 arch/x86/xen/enlighten_pv.c              | 28 +++++++--
 arch/x86/xen/xen-asm_64.S                |  5 +-
 kernel/time/tick-sched.c                 |  1 +
 tools/testing/selftests/x86/syscall_nt.c | 11 ++++
 12 files changed, 189 insertions(+), 90 deletions(-)
Signature · 1 line
2.25.4