stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <mgorman@techsingularity.net>
To: Hugh Dickins <hughd@google.com>
Cc: akpm@linux-foundation.org, andreyknvl@google.com,
	cesarb@cesarb.net, dvyukov@google.com, glider@google.com,
	hannes@cmpxchg.org, jason.low2@hp.com, kcc@google.com,
	mhocko@suse.cz, stable@vger.kernel.org, vdavydov@parallels.com,
	mm-commits@vger.kernel.org
Subject: Re: [merged] mm-fix-potential-data-race-in-sys_swapon.patch removed from -mm tree
Date: Fri, 28 Aug 2015 15:50:08 +0100	[thread overview]
Message-ID: <20150828145008.GU12432@techsingularity.net> (raw)
In-Reply-To: <alpine.LSU.2.11.1508241215260.1936@eggly.anvils>

On Mon, Aug 24, 2015 at 12:46:54PM -0700, Hugh Dickins wrote:
> Adding Mel to Cc.
> 
> On Mon, 24 Aug 2015, akpm@linux-foundation.org wrote:
> > 
> > The patch titled
> >      Subject: mm: fix potential data race in SyS_swapon
> > has been removed from the -mm tree.  Its filename was
> >      mm-fix-potential-data-race-in-sys_swapon.patch
> > 
> > This patch was dropped because it was merged into mainline or a subsystem tree
> 
> Administrative error?  I don't see this merged into mainline yet,
> and didn't see your usual mail when you send in a batch to Linus.
> 
> And I wouldn't want it rushed too quickly to Linus: that stable
> tag is barely justified, this is a very narrow race window that
> has gone unnoticed for years, and swapon requires CAP_SYS_ADMIN.
> 
> But also I spotted Mel proposing a swap-over-NFS patch in this area
> on LKML last Thursday: he appeared to be relying on the loop that I
> remove here, so he might want to veto this one (though can always
> reinstate what he needs later, if that's how it plays out).
> 

I don't think we will have a problem. The swap-over-NFS patch collides
with yours but not in a way that matters. I'll see how things look
after the merge window but I think I'll be able to limit the scope of
the lock further and still avoid the use of i_mutex.

-- 
Mel Gorman
SUSE Labs

      parent reply	other threads:[~2015-08-28 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 18:41 [merged] mm-fix-potential-data-race-in-sys_swapon.patch removed from -mm tree akpm
2015-08-24 19:46 ` Hugh Dickins
2015-08-24 19:54   ` Andrew Morton
2015-08-24 19:59     ` Hugh Dickins
2015-08-28 14:50   ` Mel Gorman [this message]

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=20150828145008.GU12432@techsingularity.net \
    --to=mgorman@techsingularity.net \
    --cc=akpm@linux-foundation.org \
    --cc=andreyknvl@google.com \
    --cc=cesarb@cesarb.net \
    --cc=dvyukov@google.com \
    --cc=glider@google.com \
    --cc=hannes@cmpxchg.org \
    --cc=hughd@google.com \
    --cc=jason.low2@hp.com \
    --cc=kcc@google.com \
    --cc=mhocko@suse.cz \
    --cc=mm-commits@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=vdavydov@parallels.com \
    /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).