From: Arjan van de Ven <arjanvandeven@gmail.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: Alex Henrie <alexhenrie24@gmail.com>,
One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>,
Kees Cook <keescook@chromium.org>,
"H . Peter Anvin" <hpa@zytor.com>,
Doug Johnson <dougvj@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
Tyler Hicks <tyhicks@canonical.com>,
Al Viro <viro@zeniv.linux.org.uk>,
LKML <linux-kernel@vger.kernel.org>,
Andy Lutomirski <luto@kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Borislav Petkov <bp@alien8.de>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Arjan van de Ven <arjan@infradead.org>,
Denys Vlasenko <dvlasenk@redhat.com>,
Brian Gerst <brgerst@gmail.com>
Subject: Re: [PATCH v2] x86: Preserve iopl on fork and execve
Date: Tue, 12 May 2015 08:24:38 -0700 [thread overview]
Message-ID: <CADyApD3Kom234GhvNdxTiF8xpUdqp9cLp8TuGLTkrQ=Z3ESkfg@mail.gmail.com> (raw)
In-Reply-To: <20150512064032.GA25097@gmail.com>
On Mon, May 11, 2015 at 11:40 PM, Ingo Molnar <mingo@kernel.org> wrote:
> - Nothing actually broke that people cared about in the last 2.5
> years, thus this might be one of the (very very rare) cases where
> preserving a breakage is the right thing to do.
> - These syscalls are rarely used, and we could as well insist that
> every new context should have the permissions to (re-)acquire them
> and should actively seek them - instead of inheriting it to shells
> via system(), etc. The best strategy with dangerous APIs is to make
> it really, really explicit when they are used.
since nothing really broke and its a "nasty either way" regression
wise, picking the more secure path looks the most sane.
the most likely impact path is in the X world, where X normally gets
iopl type permissions (even thought it doesn't need
them anymore nowadays).. reverting this behavior would give all the
processes X spawns off those perms as well...
also the interesting question is:
can a process give up these perms?
otherwise it becomes a "once given, never gotten rid of" hell hole.
next prev parent reply other threads:[~2015-05-12 15:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 23:38 [PATCH v2] x86: Preserve iopl on fork and execve Alex Henrie
2015-05-12 6:40 ` Ingo Molnar
2015-05-12 15:13 ` Linus Torvalds
2015-05-12 18:24 ` H. Peter Anvin
2015-05-12 15:24 ` Arjan van de Ven [this message]
2015-05-12 15:25 ` Arjan van de Ven
2015-05-12 15:47 ` Austin S Hemmelgarn
2015-05-12 18:05 ` Alex Henrie
2015-05-12 18:12 ` Austin S Hemmelgarn
2015-05-14 10:41 ` Josh Triplett
2015-05-15 0:52 ` H. Peter Anvin
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='CADyApD3Kom234GhvNdxTiF8xpUdqp9cLp8TuGLTkrQ=Z3ESkfg@mail.gmail.com' \
--to=arjanvandeven@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=alexhenrie24@gmail.com \
--cc=arjan@infradead.org \
--cc=bp@alien8.de \
--cc=brgerst@gmail.com \
--cc=dougvj@gmail.com \
--cc=dvlasenk@redhat.com \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=tyhicks@canonical.com \
--cc=viro@zeniv.linux.org.uk \
/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).