From mboxrd@z Thu Jan 1 00:00:00 1970 From: CAI Qian Subject: Re: possible circular locking dependency detected Date: Fri, 2 Sep 2016 10:43:20 -0400 (EDT) Message-ID: <1891948343.1299163.1472827400124.JavaMail.zimbra@redhat.com> References: <6f7d587b-3933-7c02-a804-db1732ced1cf@stressinduktion.org> <20160901204746.GR2356@ZenIV.linux.org.uk> <20160901210142.GS2356@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Al Viro , Miklos Szeredi , Rainer Weikusat , Hannes Frederic Sowa , Rainer Weikusat , Eric Sandeen , Network Development To: Linus Torvalds Return-path: Received: from mx6-phx2.redhat.com ([209.132.183.39]:55980 "EHLO mx6-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753364AbcIBOnj (ORCPT ); Fri, 2 Sep 2016 10:43:39 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: ----- Original Message ----- > From: "Linus Torvalds" > To: "Al Viro" , "CAI Qian" > Cc: "Miklos Szeredi" , "Rainer Weikusat" , "Hannes Frederic Sowa" > , "Rainer Weikusat" , "Eric Sandeen" > , "Network Development" > Sent: Thursday, September 1, 2016 6:04:38 PM > Subject: Re: possible circular locking dependency detected > > On Thu, Sep 1, 2016 at 2:43 PM, Linus Torvalds > wrote: > > On Thu, Sep 1, 2016 at 2:01 PM, Al Viro wrote: > >> > >> Outside as in "all fs activity in bind happens under it". Along with > >> assignment to ->u.addr, etc. IOW, make it the outermost lock there. > > > > Hah, yes. I misunderstood you. > > > > Yes. In fact that fixes the problem I mentioned, rather than introducing > > it. > > So the easiest approach would seem to be to revert commit c845acb324aa > ("af_unix: Fix splice-bind deadlock"), and then apply the lock split. > > Like the attached two patches. > > This is still *entirely* untested. Tested-by: CAI Qian > > Rainer? > > Linus >