From: Andrew Morton <akpm@linux-foundation.org>
To: Greg KH <greg@kroah.com>
Cc: David Rientjes <rientjes@google.com>,
Sasha Levin <sasha.levin@oracle.com>,
stable@vger.kernel.org, Al Viro <viro@zeniv.linux.org.uk>,
Jan Kara <jack@suse.cz>, Dave Jones <davej@redhat.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [stable] please do not merge 058504edd026 (was Re: fs: use after free in /proc/pid/mountinfo)
Date: Mon, 7 Jul 2014 16:06:27 -0700 [thread overview]
Message-ID: <20140707160627.dd260c98d20ce68f4668797a@linux-foundation.org> (raw)
In-Reply-To: <20140707230542.GJ11171@kroah.com>
On Mon, 7 Jul 2014 16:05:42 -0700 Greg KH <greg@kroah.com> wrote:
> On Fri, Jul 04, 2014 at 03:35:54PM -0700, David Rientjes wrote:
> > On Fri, 4 Jul 2014, Sasha Levin wrote:
> >
> > > > Does this now reproduce on Linus's tree? If so, does reverting commit
> > > > 058504edd026 ("fs/seq_file: fallback to vmalloc allocation") prevent this
> > > > issue?
> > > >
> > > > This is a use-after-free since the poison value is 0x6b and I'm presuming
> > > > that your /proc/self/mountinfo may be larger than PAGE_SIZE in your
> > > > testing environment.
> > > >
> > >
> > > Good call, reverting that patch made both issues go away.
> > >
> >
> > Thanks for checking, Sasha.
> >
> > Stable maintainers, please do not merge commit 058504edd026 ("fs/seq_file:
> > fallback to vmalloc allocation") that is annotated with a cc for
> > stable@vger.kernel.org in Linus's tree into stable kernels.
> >
> > Although we're at 3.16-rc3, I'm hoping that we can get a fix for the
> > use-after-free in the next couple days before asking for a revert. Sasha
> > confirms[*] this commit causes the bug.
>
> I should also drop "Subject: /proc/stat: convert to single_open_size()"
> from the -stable tree, right?
>
That would be best.
I can't see how "fs: use after free in /proc/pid/mountinfo" can cause a
use-after-free so perhaps the bug lies elsewhere and was hidden by luck
(slab buffering or slab rcu-freeing or something). In which case
"fs/seq_file: fallback to vmalloc allocation" might be the patch which
added the bug.
next prev parent reply other threads:[~2014-07-07 23:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 11:55 fs: use after free in /proc/pid/mountinfo Sasha Levin
2014-07-03 3:15 ` Sasha Levin
2014-07-03 21:37 ` David Rientjes
2014-07-04 14:55 ` Sasha Levin
2014-07-04 22:35 ` [stable] please do not merge 058504edd026 (was Re: fs: use after free in /proc/pid/mountinfo) David Rientjes
2014-07-07 23:05 ` Greg KH
2014-07-07 23:06 ` Andrew Morton [this message]
2014-07-07 23:19 ` Greg KH
2014-07-06 10:04 ` fs: use after free in /proc/pid/mountinfo Heiko Carstens
2014-07-09 14:24 ` Heiko Carstens
2014-07-09 20:31 ` Andrew Morton
2014-07-09 22:10 ` Sasha Levin
2014-07-09 22:59 ` Andrew Morton
2014-07-15 13:52 ` Sasha Levin
2014-07-15 23:01 ` David Rientjes
2014-07-23 20:57 ` Andrew Morton
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=20140707160627.dd260c98d20ce68f4668797a@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=davej@redhat.com \
--cc=greg@kroah.com \
--cc=heiko.carstens@de.ibm.com \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
--cc=sasha.levin@oracle.com \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--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
all inboxes | Powered by JetHome®