All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: speck@linutronix.de
Subject: Re: [PATCH v2] Linux Patch 1/1
Date: Fri, 27 Apr 2018 20:36:51 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1804272036040.1596@nanos.tec.linutronix.de> (raw)
In-Reply-To: <alpine.LFD.2.21.999.1804271122230.11549@i7.lan>

On Fri, 27 Apr 2018, speck for Linus Torvalds wrote:
> On Fri, 27 Apr 2018, speck for Thomas Gleixner wrote:
> > On Fri, 27 Apr 2018, speck for Thomas Gleixner wrote:
> > > 
> > > Sure. You set it on that sandbox thing and then the thread which is spawned
> > > of from there can disable it. Brilliant idea.
> > 
> > And in fact you want it even inherit on exec because then you can start the
> > JVM or whatever you want to protect with it disabled and never have to
> > worry about it again.
> 
> I don't think that's the attack people are worried about.
> 
> Basically, for the store buffer bypass, the *only* worry is JIT'ed code. 
> I don't think people expect it to leak from supervisor to user mode, for 
> example, so it's not primarily a protection domain issue.
> 
> It's almost purely a "I generated code assuming the architecture would 
> actualy execute the code I wrote" issue.
> 
> That means that it's not like you're really executing "untrusted" code in 
> general. Your jitted code isn't going to just run random sysctl's without 
> any checking or anything like that. You trust your JVM to take care of 
> *those* kinds of security issues.
> 
> So "user can turn it on and off as they please" is not really an issue. In 
> fact, it could easily be seen as a feature. Making it expensive or hard to 
> turn off the mitigation means that you can't necessarily just turn it on 
> temporarily for the code you really care about.
> 
> Realistically, a JIT would probably prefer to only turn off store buffer 
> bypass when jumping into JIT'ed code, and then turning it on when coming 
> back. Exactly because it's really not about any "security", it's abnout "I 
> translated untrusted code, and I want _exactly_ the semantics that I did 
> the translations with - everything else I can and do check manually".

Fair enough. I didn't look at it that way. Thanks for the clarification.

Thanks,

	tglx

  reply	other threads:[~2018-04-27 18:36 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26  0:11 [MODERATED] [PATCH v2] Linux Patch 1/1 Tim Chen
2018-04-26  3:15 ` [MODERATED] " Jon Masters
2018-04-26 17:03   ` Tim Chen
2018-04-26  3:29 ` Jon Masters
2018-04-26 12:03   ` Thomas Gleixner
2018-04-26 16:48     ` [MODERATED] " Tim Chen
2018-04-26 16:18 ` Jon Masters
2018-04-27 16:08 ` Thomas Gleixner
2018-04-27 16:47   ` [MODERATED] " Borislav Petkov
2018-04-27 17:13     ` Jon Masters
2018-04-27 17:32       ` Borislav Petkov
2018-04-27 17:48         ` Thomas Gleixner
2018-04-27 18:09           ` [MODERATED] " Andi Kleen
2018-04-27 18:17             ` Thomas Gleixner
2018-04-27 18:20               ` Thomas Gleixner
2018-04-27 18:30                 ` [MODERATED] " Linus Torvalds
2018-04-27 18:36                   ` Thomas Gleixner [this message]
2018-04-27 18:53                     ` Linus Torvalds
2018-04-27 19:14                       ` Andi Kleen
2018-04-27 19:37                       ` Jon Masters
2018-04-27 19:52                         ` Linus Torvalds
2018-04-27 20:01                           ` Jon Masters
2018-05-03 12:55                           ` Jiri Kosina
2018-05-03 16:24                             ` Linus Torvalds
2018-05-03 19:40                               ` Jiri Kosina
2018-05-04  3:51                                 ` Linus Torvalds
2018-05-04  6:00                                   ` Jiri Kosina
2018-05-04  6:03                                     ` Jiri Kosina
2018-05-07 16:40                                   ` [MODERATED] " Dave Hansen
2018-04-27 19:26                   ` [MODERATED] " Tim Chen
2018-04-27 19:57                     ` Jon Masters
2018-04-27 20:07                       ` Tim Chen
2018-04-27 20:20                         ` Thomas Gleixner
2018-04-27 20:37                       ` Thomas Gleixner
2018-04-28  3:57                         ` [MODERATED] " Tim Chen
2018-04-28 12:26                           ` Thomas Gleixner
2018-04-28 17:14                             ` [MODERATED] " Tim Chen
2018-04-27 22:52                     ` Thomas Gleixner
2018-04-27 18:45               ` [MODERATED] " Andi Kleen
2018-04-27 19:08                 ` Thomas Gleixner
2018-04-27 19:25                   ` [MODERATED] " Andi Kleen
2018-04-27 19:52                     ` Thomas Gleixner
2018-04-27 17:50         ` [MODERATED] " Andi Kleen
2018-04-27 17:58   ` Thomas Gleixner
2018-04-27 19:01   ` [MODERATED] " Tim Chen
2018-04-27 19:19     ` Thomas Gleixner

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.1804272036040.1596@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.