linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>,
	Steven Rostedt <rostedt@goodmis.org>,
	Tony Luck <tony.luck@intel.com>, x86-ml <x86@kernel.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] #MC mess
Date: Wed, 19 Feb 2020 09:15:41 +0100	[thread overview]
Message-ID: <20200219081541.GG14914@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <CALCETrXbitwGKcEbCF84y0aEGz+B4LL_bj-_njgyXBJA74abOA@mail.gmail.com>

On Tue, Feb 18, 2020 at 04:15:57PM -0800, Andy Lutomirski wrote:
> On Tue, Feb 18, 2020 at 9:31 AM Borislav Petkov <bp@alien8.de> wrote:
> >
> > Ok,
> >
> > so Peter raised this question on IRC today, that the #MC handler needs
> > to disable all kinds of tracing/kprobing and etc exceptions happening
> > while handling an #MC. And I guess we can talk about supporting some
> > exceptions but #MC is usually nasty enough to not care about tracing
> > when former happens.
> >
> 
> It's worth noting that MCE is utterly, terminally screwed under high
> load.  In particular:
> 
> Step 1: NMI (due to perf).
> 
> immediately thereafter (before any of the entry asm runs)
> 
> Step 2: MCE (due to recoverable memory failure or remote CPU MCE)
> 
> Step 3: MCE does its thing and does IRET
> 
> Step 4: NMI
> 
> We are toast.
> 
> Tony, etc, can you ask your Intel contacts who care about this kind of
> thing to stop twiddling their thumbs and FIX IT?  The easy fix is
> utterly trivial.  Add a new instruction IRET_NON_NMI.  It does
> *exactly* the same thing as IRET except that it does not unmask NMIs.
> (It also doesn't unmask NMIs if it faults.)  No fancy design work.
> Future improvements can still happen on top of this.

Yes please! Of course, we're stuck with the existing NMI entry crap
forever because legacy, but it would make all things NMI so much saner.

  reply	other threads:[~2020-02-19  8:16 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18 17:31 [RFC] #MC mess Borislav Petkov
2020-02-18 18:11 ` Steven Rostedt
2020-02-18 19:50   ` Borislav Petkov
2020-02-18 20:08     ` Steven Rostedt
2020-02-18 20:30       ` Peter Zijlstra
2020-02-18 20:52       ` Borislav Petkov
2020-02-18 18:20 ` Luck, Tony
2020-02-18 19:51   ` Borislav Petkov
2020-02-18 19:54     ` Luck, Tony
2020-02-18 20:00       ` Borislav Petkov
2020-02-18 20:05         ` Luck, Tony
2020-02-18 20:02   ` Peter Zijlstra
2020-02-18 20:09     ` Borislav Petkov
2020-02-18 20:11     ` Luck, Tony
2020-02-18 20:34       ` Peter Zijlstra
2020-02-18 21:49         ` Peter Zijlstra
2020-02-18 21:53           ` Peter Zijlstra
2020-02-18 22:41             ` Frederic Weisbecker
2020-02-18 22:40           ` Frederic Weisbecker
2020-02-18 23:17     ` Andy Lutomirski
2020-02-18 23:10   ` Andy Lutomirski
2020-02-18 23:17     ` Steven Rostedt
2020-02-19  0:15 ` Andy Lutomirski
2020-02-19  8:15   ` Peter Zijlstra [this message]
2020-02-19 14:21     ` Steven Rostedt
2020-02-19 14:43       ` Borislav Petkov
2020-02-19 15:05       ` Peter Zijlstra
2020-02-19 15:20         ` Andy Lutomirski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200219081541.GG14914@hirez.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).