Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1191321 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2015-07-23 23:30 +0200 |
| Last post | 2015-07-23 23:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Dealing with the NMI mess Steven Rostedt <rostedt@goodmis.org> - 2015-07-23 23:30 +0200
Re: Dealing with the NMI mess Andy Lutomirski <luto@amacapital.net> - 2015-07-23 23:50 +0200
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-07-23 23:30 +0200 |
| Subject | Re: Dealing with the NMI mess |
| Message-ID | <pPwdX-21o-1@gated-at.bofh.it> |
On Thu, 23 Jul 2015 13:21:16 -0700 Andy Lutomirski <luto@amacapital.net> wrote: > 3. Forbid faults (other than MCE) inside NMI. > > Option 3 is almost easy. There are really only two kinds of faults > that can legitimately nest inside NMI: #PF and #DB. #DB is easy to > fix (e.g. with my patches or Peter's patches). What about int3? Which is needed to make ftrace work. This was a requirement to get rid of stomp-machine when updating ftrace functions, as well as the rational for doing the whole NMI nesting work in the first place. > > What if we went all out and forbade page faults in NMI as well. There > are two reasons that I can think of that we might page fault inside an > NMI: > > a) vmalloc fault. I think Ingo already half-implemented a rework to > eliminate vmalloc faults entirely. > > b) User memory access faults. c) stack tracing faults I would have NMIs debug deadlocks with printing stack traces. The stack tracer can page fault, and before the NMI nesting code, while debugging machines, these stack dumps would randomly reboot the box. While writing the NMI nesting code I realized why those reboots happened, and that was due to the stack trace faulting, and the printk from NMI was slow enough to have another NMI go off and stomp over the outer NMIs stack. Which lead to triple faults and such. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Date | 2015-07-23 23:50 +0200 |
| Message-ID | <pPwxk-2oa-25@gated-at.bofh.it> |
| In reply to | #1191321 |
On Thu, Jul 23, 2015 at 2:20 PM, Steven Rostedt <rostedt@goodmis.org> wrote: > On Thu, 23 Jul 2015 13:21:16 -0700 > Andy Lutomirski <luto@amacapital.net> wrote: > >> 3. Forbid faults (other than MCE) inside NMI. >> >> Option 3 is almost easy. There are really only two kinds of faults >> that can legitimately nest inside NMI: #PF and #DB. #DB is easy to >> fix (e.g. with my patches or Peter's patches). > > What about int3? Which is needed to make ftrace work. This was a > requirement to get rid of stomp-machine when updating ftrace functions, > as well as the rational for doing the whole NMI nesting work in the > first place. OK, I'm convinced. So I'll keep working on fixing up int3 to be less magical. Patches coming eventually. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web