x86/entry: Entry/exception code rework, nasty exceptions
Status from this message: The following commit has been merged into the x86/entry branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/24 | x86/int3: Ensure that poke_int3_handler() is not tracedarch/ arch/ arch/ | +14 | 1 reply | |
| 2/24 | x86/int3: Avoid atomic instrumentationarch/ | +3 | 9 replies | |
| 3/24 | lib/bsearch: Provide __always_inline variantinclude/ lib/ | +26 | 1 reply | |
| 4/24 | x86/int3: Inline bsearch()arch/ arch/ | +9 | 1 reply | |
| 5/24 | x86/entry: Provide IDTENTRY_RAWarch/ | +31 | 1 reply | |
| 6/24 | x86/entry: Convert INT3 exception to IDTENTRY_RAWarch/ arch/ arch/ +5 more | +23 | 1 reply | |
| 7/24 | x86/traps: Split int3 handler uparch/ | +39 | 2 replies | |
| 8/24 | x86/entry: Provide IDTENTRY_ISTarch/ | +54 | 2 replies | |
| 9/24 | x86/mce: Move nmi_enter/exit() into the entry pointarch/ arch/ arch/ | +13 | 1 reply | |
| 10/24 | x86/entry: Convert Machine Check to IDTENTRY_ISTarch/ arch/ arch/ +11 more | +32 | 1 reply | |
| 11/24 | x86/mce: Use untraced rd/wrmsr in the MCE offline/crash checkarch/ | +2 | 1 reply | |
| 12/24 | x86/idtentry: Provide IDTENTRY_XEN for XEN/PVarch/ | +16 | 1 reply | |
| 13/24 | x86/entry: Convert NMI to IDTENTRY_NMIarch/ arch/ arch/ +5 more | +25 | 1 reply | |
| 14/24 | x86/nmi: Protect NMI entry against instrumentationarch/ arch/ arch/ | +12 | 1 reply | |
| 15/24 | x86/db: Split out dr6/7 handlingarch/ arch/ | +44 | 10 replies | |
| 16/24 | x86/entry: Convert Debug exception to IDTENTRY_DBarch/ arch/ arch/ +5 more | +24 | 1 reply | |
| 17/24 | x86/entry/64: Remove error code clearing from #DB and #MCE ASM stubarch/ | +0 | 1 reply | |
| 18/24 | x86/entry: Provide IDTRENTRY_NOIST variants for #DB and #MCarch/ | +17 | 1 reply | |
| 19/24 | x86/entry: Implement user mode C entry points for #DB and #MCEarch/ arch/ arch/ | +88 | 1 reply | |
| 20/24 | x86/traps: Restructure #DB handlingarch/ | +35 | 1 reply | |
| 21/24 | x86/traps: Address objtool noinstr complaints in #DBarch/ | +10 | 1 reply | |
| 22/24 | x86/mce: Address objtools noinstr complaintsarch/ arch/ arch/ +1 more | +22 | 1 reply | |
| 23/24 | x86/entry: Provide IDTENTRY_DFarch/ | +99 | 2 replies | |
| 24/24 | x86/entry: Convert double fault exception to IDTENTRY_DFarch/ arch/ arch/ +6 more | +31 | 2 replies |
Reviews trailers per patch
23 of 24 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Chartre | Masami Hiramatsu | Andy Lutomirski |
|---|---|---|---|
| 1/24 | A-b | ||
| 2/24 | R-b | A-b | |
| 3/24 | A-b | ||
| 4/24 | A-b | ||
| 5/24 | A-b | ||
| 6/24 | A-b | ||
| 7/24 | |||
| 8/24 | A-b | ||
| 9/24 | A-b | ||
| 10/24 | A-b | ||
| 11/24 | A-b | ||
| 12/24 | A-b | ||
| 13/24 | A-b | ||
| 14/24 | A-b | ||
| 15/24 | A-b | ||
| 16/24 | A-b | ||
| 17/24 | A-b | ||
| 18/24 | A-b | ||
| 19/24 | A-b | ||
| 20/24 | A-b | ||
| 21/24 | A-b | ||
| 22/24 | A-b | ||
| 23/24 | A-b | ||
| 24/24 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [patch V4 part 4 00/24] x86/entry: Entry/exception code rework, nasty exceptions
Folks,
This is the forth part of the rework series. Part 3 can be found here:
https://lore.kernel.org/r/[email protected]
The series has a total of 138 patches and is split into 5 parts. The base for this 4th series is:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v4-part-3
The full series with all parts applied is available here:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v4-part-5
The forth part, i.e. this series is available from:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v4-part-4
This part contains the modifications for complex and nasty exceptions and traps:
- Conversion of int3 including a full isolation of the text poke handler so it is fully self contained, i.e does not call out into any instrumentable code.
- Conversion of NMI handling including protection against instrumentation
- Conversion of #DB with separation of the user and kernel mode entries
- Conversion of #MC and #DF
The objtool check for the noinstr.text correctness is not yet added to the build machinery and has to be invoked manually for now:
objtool check -fal vmlinux.o
The checking only works for builtin code as objtool cannot do a combined analysis of vmlinux.o and a module.o
Thanks,
tglx
8<----------
arch/x86/entry/entry_32.S | 38 ---- arch/x86/entry/entry_64.S | 35 +--- arch/x86/include/asm/desc.h | 8 arch/x86/include/asm/idtentry.h | 235 +++++++++++++++++++++++++++++ arch/x86/include/asm/mce.h | 2 arch/x86/include/asm/ptrace.h | 2 arch/x86/include/asm/text-patching.h | 11 - arch/x86/include/asm/traps.h | 23 -- arch/x86/kernel/alternative.c | 25 +-- arch/x86/kernel/cpu/common.c | 6 arch/x86/kernel/cpu/mce/core.c | 91 ++++++++--- arch/x86/kernel/cpu/mce/inject.c | 4 arch/x86/kernel/cpu/mce/internal.h | 2 arch/x86/kernel/cpu/mce/p5.c | 8 arch/x86/kernel/cpu/mce/winchip.c | 8 arch/x86/kernel/doublefault_32.c | 10 - arch/x86/kernel/hw_breakpoint.c | 6 arch/x86/kernel/idt.c | 22 +- arch/x86/kernel/nmi.c | 14 - arch/x86/kernel/traps.c | 283 ++++++++++++++++++++++++----------- arch/x86/kvm/vmx/vmx.c | 2 arch/x86/xen/enlighten_pv.c | 17 +- arch/x86/xen/xen-asm_64.S | 12 - include/linux/bsearch.h | 26 ++- kernel/time/timekeeping.c | 2 lib/bsearch.c | 22 -- 26 files changed, 615 insertions(+), 299 deletions(-)