Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753922Ab3CVANB (ORCPT ); Thu, 21 Mar 2013 20:13:01 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:38978 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753654Ab3CVANA (ORCPT ); Thu, 21 Mar 2013 20:13:00 -0400 Date: Fri, 22 Mar 2013 00:12:57 +0000 From: Al Viro To: Linus Torvalds Cc: Dave Jones , Linux Kernel , "Eric W. Biederman" Subject: Re: VFS deadlock ? Message-ID: <20130322001257.GH21522@ZenIV.linux.org.uk> References: <20130321203639.GC16406@redhat.com> <20130321204704.GZ21522@ZenIV.linux.org.uk> <20130321210255.GD16406@redhat.com> <20130321221256.GA30620@redhat.com> <20130321233630.GE21522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 30 On Thu, Mar 21, 2013 at 05:01:49PM -0700, Linus Torvalds wrote: > On Thu, Mar 21, 2013 at 4:58 PM, Linus Torvalds > wrote: > > > > So yes, it's against the rules, and we get that deadlock right now, > > but one solution would be to just allow this particular case. The > > patch for the deadlock looks dead simple: > > It should go without saying that that whitespace-damaged patch is > entirely untested. But especially since we need to back-port whatever > fix, it would be good if we could make the fix be something as simple > as this. Because I don't believe we really want to backport some big > network-namespace reorganization. > > This is, of course, all assuming that hardlinked directories are ok if > we can just guarantee the absence of loops. If there's some other > reason why they'd be problematic, we're screwed. See the posting upthread. We could try to kludge around that as well (e.g. have d_ancestor() compare ->d_inode instead of dentries themselves), but I really think it's a lousy idea only inviting further abuse. What we should do, IMO, is to turn /proc//net into a honest symlink - to ../nets//net. Hell, might even make it a magical symlink instead... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/