All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: speck@linutronix.de
Subject: Re: [patch 07/11] [PATCH v2 07/10] Linux Patch #7
Date: Tue, 24 Apr 2018 00:23:12 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1804240009560.5261@nanos.tec.linutronix.de> (raw)
In-Reply-To: <217e6c7c-29f9-d754-33ec-fcc541792aab@redhat.com>

On Mon, 23 Apr 2018, speck for Jon Masters wrote:

> On 04/23/2018 02:05 PM, speck for Linus Torvalds wrote:
> > 
> > 
> > On Mon, 23 Apr 2018, speck for Konrad Rzeszutek Wilk wrote:
> >>
> >> I believe (and Linus, please correct me here) that the question of
> >> toggling on/off SPEC_CTRL MSR on user-space entrance is a no-go.
> > 
> > Absolutely. That would be entirely crazy.
> 
> Yep, totally nuts, and nobody is asking for that :)
> 
> > Is there a known situation where that would actually make sense?
> 
> Intel point out that globally disabling MD by default has typically a
> few percent hit, but sometimes up to 30%. Therefore, they want it to be
> per-process controllable. As I said, e.g. with a prctrl that happens to
> control an MSR underneath, but it's not userspace setting an MSR.

As we discussed before:

 1) Yet another patch site in the entry/exit path which if patched to
    functional contains yet another conditonal.

    The amount of NOOPs in entry/exit is horrendous already if this whole
    nonsense is patched out.

 2) The prctl is a handwavy idea. The semantics are blury at best. Is it
    opt-in or opt-out? Which processes should set it? What's the chance
    that the applications get actually patched? This is the ideal target
    for bitrot.

Anyway, if Intel thinks that this is desired, then they can send patches on
top of the big hammer (MD on/off globally) and provide the answers to #2
and proper numbers.

It's fully orthogonal and does not change the plan of having the global MD
on/off switch there ASAP and first.

Thanks,

	tglx

  reply	other threads:[~2018-04-23 22:23 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-20  2:25 [MODERATED] [patch 07/11] [PATCH v2 07/10] Linux Patch #7 konrad.wilk
2018-04-20 17:42 ` [MODERATED] " Borislav Petkov
2018-04-21  3:27   ` Konrad Rzeszutek Wilk
2018-04-21  9:03     ` Borislav Petkov
2018-04-21 12:21       ` Konrad Rzeszutek Wilk
2018-04-21 19:25         ` Borislav Petkov
2018-04-21 21:41           ` Linus Torvalds
2018-04-21 22:09             ` Borislav Petkov
2018-04-21 22:13               ` Jon Masters
2018-04-21 22:35                 ` Borislav Petkov
2018-04-21 22:54                   ` Jon Masters
2018-04-22  1:26                     ` Linus Torvalds
2018-04-22  3:18                       ` Jon Masters
2018-04-22  9:35                         ` Borislav Petkov
2018-04-22  9:53                           ` Jon Masters
2018-04-22 10:34                             ` Borislav Petkov
2018-04-22 15:16                               ` Jon Masters
2018-04-23 14:30                               ` Thomas Gleixner
2018-04-23 14:34                                 ` [MODERATED] " Jon Masters
2018-04-23 17:06                                   ` Jon Masters
2018-04-23 17:51                                     ` Konrad Rzeszutek Wilk
2018-04-23 18:01                                       ` Jon Masters
2018-04-23 18:02                                         ` Jon Masters
2018-04-23 18:05                                       ` Linus Torvalds
2018-04-23 18:09                                         ` Jon Masters
2018-04-23 22:23                                           ` Thomas Gleixner [this message]
2018-04-23 22:30                                             ` Jiri Kosina
2018-04-23 23:03                                               ` Andi Kleen
2018-04-24  5:32                                                 ` Jiri Kosina
2018-04-23 22:31                                             ` Andi Kleen
2018-04-24  0:44                                               ` Jon Masters
2018-04-23 23:36                                             ` Tim Chen
2018-04-23 21:13                                         ` Konrad Rzeszutek Wilk
2018-04-23 21:23                                           ` Linus Torvalds
2018-04-23 21:33                                             ` Jiri Kosina
2018-04-23 22:18                                             ` Andi Kleen
2018-04-24  0:34                                             ` Jon Masters
2018-04-21 22:09             ` Jon Masters

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=alpine.DEB.2.21.1804240009560.5261@nanos.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=speck@linutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.