lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180517095040.GC28396@kroah.com>
Date:   Thu, 17 May 2018 11:50:40 +0200
From:   Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:     "J. Bruce Fields" <bfields@...hat.com>
Cc:     Ben Hutchings <ben.hutchings@...ethink.co.uk>,
        stable@...r.kernel.org, David Jeffery <djeffery@...hat.com>,
        Sasha Levin <alexander.levin@...rosoft.com>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4.4 014/190] lockd: fix lockd shutdown race

On Wed, May 16, 2018 at 03:53:29PM -0400, J. Bruce Fields wrote:
> On Tue, May 15, 2018 at 07:44:24PM +0100, Ben Hutchings wrote:
> > On Wed, 2018-04-11 at 20:34 +0200, Greg Kroah-Hartman wrote:
> > > 4.4-stable review patch.  If anyone has any objections, please let me know.
> > > 
> > > ------------------
> > > 
> > > From: "J. Bruce Fields" <bfields@...hat.com>
> > > 
> > > 
> > > [ Upstream commit efda760fe95ea15291853c8fa9235c32d319cd98 ]
> > [...]
> > > --- a/fs/lockd/svc.c
> > > +++ b/fs/lockd/svc.c
> > > @@ -129,6 +129,8 @@ lockd(void *vrqstp)
> > >  {
> > >  	int		err = 0;
> > >  	struct svc_rqst *rqstp = vrqstp;
> > > +	struct net *net = &init_net;
> > > +	struct lockd_net *ln = net_generic(net, lockd_net_id);
> > >  
> > >  	/* try_to_freeze() is called from svc_recv() */
> > >  	set_freezable();
> > > @@ -173,6 +175,8 @@ lockd(void *vrqstp)
> > >  	if (nlmsvc_ops)
> > >  		nlmsvc_invalidate_all();
> > > 	nlm_shutdown_hosts();
> > > +	cancel_delayed_work_sync(&ln->grace_period_end);
> > > +	locks_end_grace(&ln->lockd_manager);
> > >  	return 0;
> > >  }
> > >  
> > > @@ -267,8 +271,6 @@ static void lockd_down_net(struct svc_se
> > >  	if (ln->nlmsvc_users) {
> > >  		if (--ln->nlmsvc_users == 0) {
> > >  			nlm_shutdown_hosts_net(net);
> > > -			cancel_delayed_work_sync(&ln->grace_period_end);
> > > -			locks_end_grace(&ln->lockd_manager);
> > 
> > Aren't these statements still needed for non-initial namespaces?
> 
> Looks like this this should be backported only if 3a2b19d1ee56 "lockd:
> lost rollback of set_grace_period() in lockd_down_net()" is also.

Looks like it, thanks, now queued up.

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ