[lkml]   [2015]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v2 0/3] x86_64: Make int3 non-magical
int3 uses IST and the paranoid gsbase path.  Neither is necessary,
although the IST stack may currently be necessary to avoid stack

Clean up IRQ stacks, make them NMI safe, teach idtentry to use
irqstacks if requested, and move int3 to the IRQ stack.

This prepares us to return from int3 using RET. While we could,
in principle, return from an IST entry using RET, making that work
seems likely to be much messier and more fragile than this approach.

Changes from v1: Actually NMI-safe

Andy Lutomirski (3):
x86/entry/64: Refactor IRQ stacks and make them NMI-safe
x86/entry/64: Teach idtentry to use the IRQ stack
x86/entry/64: Move #BP from IST to the IRQ stack

arch/x86/Kconfig.debug | 2 -
arch/x86/entry/entry_64.S | 105 ++++++++++++++++++++++++++++++-------------
arch/x86/kernel/process_64.c | 4 ++
arch/x86/kernel/traps.c | 26 +++++------
4 files changed, 90 insertions(+), 47 deletions(-)


 \ /
  Last update: 2015-07-25 08:21    [W:0.789 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site