From: Linus Torvalds <torvalds@linux-foundation.org>
To: Athanasius <link@miggy.org>
Cc: Julien TINNES <jt@cr0.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Greg KH <gregkh@suse.de>, Tavis Ormandy <taviso@sdf.lonestar.org>,
Christoph Hellwig <hch@infradead.org>,
Kees Cook <kees@ubuntu.com>, Eugene Teo <eugene@redhat.com>
Subject: Re: [link@miggy.org: Re: [patch 2/8] personality: fix PER_CLEAR_ON_SETID (CVE-2009-1895)]
Date: Sun, 19 Jul 2009 12:27:05 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0907191219230.13838@localhost.localdomain> (raw)
In-Reply-To: <20090719122701.GJ6722@miggy.org>
On Sun, 19 Jul 2009, Athanasius wrote:
>
> And it's that "as long as we ..." that still bothers me. I've *never*
> had any need for any use of this personality feature and this net/tun.c
> exploit has proven there can be security gotchas with it.
I do agree. Some of those features may not be worth the cost.
That said, this particular feature made sense at the time it was
implemented. Some people really _did_ care about running SVR4 binaries on
Linux. There was a time when it was seen as a feature, and important
enough to work with. So that "map a zero page at NULL" was an important
thing that we wanted such binaries to be able to depend on.
These days? We could probably get rid of that idiotic feature. It's simply
not important enough any more. Does anybody really care? At the same time,
over years we've grown _other_ personality flags, and some of them are
still relevant.
Some binaries are unhappy with address space randomizations. Sometimes
it's because of outright bugs (that just were hidden by non-randomized VM
layout) - but that doesn't really help, does it? If you depend on that
binary, as a user you want the ability to say "run this binary in a mode
where it works".
Other binaries are unhappy with address space randomization because they
need to get the absolute maximum contiguous VM space for some big array.
Ok, so that's less of an issue in 64-bit mode, but there really are
programs out there that link everything statically and want to run at a
low virtual address so that they can get 2.5GB of virtual memory for one
single big allocation. I've written crap like that myself. I'm not _proud_
of it, but I could easily see that programs like that could be unhappy if
the system wiggles mmap's around for security issues.
So I do agree that we can probably get rid of some really dated
personality bits. But I don't think we can really get rid of the concept.
Because compatibility is always of paramount importance.
Linus
next prev parent reply other threads:[~2009-07-19 19:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090718202512.GA19587@suse.de>
[not found] ` <alpine.LFD.2.01.0907181342500.13838@localhost.localdomain>
2009-07-18 21:28 ` Athanasius
2009-07-19 1:38 ` Julien TINNES
2009-07-19 12:27 ` Athanasius
2009-07-19 19:27 ` Linus Torvalds [this message]
2009-07-19 19:39 ` Athanasius
2009-07-19 19:47 ` Linus Torvalds
2009-07-19 19:55 ` Andi Kleen
2009-07-19 22:01 ` Alan Cox
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.LFD.2.01.0907191219230.13838@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=eugene@redhat.com \
--cc=gregkh@suse.de \
--cc=hch@infradead.org \
--cc=jt@cr0.org \
--cc=kees@ubuntu.com \
--cc=link@miggy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=taviso@sdf.lonestar.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
Powered by JetHome