Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <compudj@...>
Cc: <mingo@...>, <hpa@...>, <jeremy@...>, <rostedt@...>, <fche@...>, <linux-kernel@...>
Date: Thursday, April 17, 2008 - 4:29 pm

On Thu, 17 Apr 2008 16:14:10 -0400
Mathieu Desnoyers <compudj@krystal.dyndns.org> wrote:


<did it _have_ to be a macro?>

Doing BUG() inside an NMI should be OK most of the time.  But the
BUG-handling code does want to know if we're in interrupt context - at
least for the "fatal exception in interrupt" stuff, and probably other
things.

But afacit the failure to include HARDNMI_MASK in

 #define irq_count()	(preempt_count() & (HARDIRQ_MASK | SOFTIRQ_MASK))

will prevent that.

So.

Should we or should we not make in_interrupt() return true in NMI? 
"should", I expect.

If not, we'd need to do something else to communicate the current
processing state down to the BUG-handling code.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Thu Apr 17, 4:14 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Pavel Machek, (Mon Apr 21, 10:00 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), H. Peter Anvin, (Mon Apr 21, 10:22 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 11:08 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), H. Peter Anvin, (Mon Apr 21, 11:08 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 11:47 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Pavel Machek, (Mon Apr 21, 1:23 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), H. Peter Anvin, (Mon Apr 21, 1:28 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 1:42 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), H. Peter Anvin, (Mon Apr 21, 1:59 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Tue Apr 22, 9:12 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 11:21 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 11:11 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Mon Apr 21, 10:51 am)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Thu Apr 17, 8:06 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Sat Apr 19, 5:23 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Sat Apr 19, 5:00 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Andrew Morton, (Thu Apr 17, 4:29 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Mathieu Desnoyers, (Thu Apr 17, 5:16 pm)
Re: [RFC PATCH] x86 NMI-safe INT3 and Page Fault (v5), Andrew Morton, (Thu Apr 17, 5:26 pm)