Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760048Ab3CICDX (ORCPT ); Fri, 8 Mar 2013 21:03:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37595 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757154Ab3CICDW (ORCPT ); Fri, 8 Mar 2013 21:03:22 -0500 Date: Fri, 8 Mar 2013 21:03:18 -0500 From: Dave Jones To: Linus Torvalds Cc: Linux Kernel , Al Viro Subject: Re: BUG_ON(nd->inode != parent->d_inode); Message-ID: <20130309020318.GA11449@redhat.com> Mail-Followup-To: Dave Jones , Linus Torvalds , Linux Kernel , Al Viro References: <20130308230734.GA28317@redhat.com> <20130308233041.GA32587@redhat.com> <20130308235514.GA5605@redhat.com> <20130309001917.GA6015@redhat.com> <20130309003617.GB6743@redhat.com> 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: 1756 Lines: 51 On Fri, Mar 08, 2013 at 05:18:29PM -0800, Linus Torvalds wrote: > On Fri, Mar 8, 2013 at 4:36 PM, Dave Jones wrote: > > > > Ok, it's definitly the 'append something on the end of a valid pathname' > > changeset. 'something' can be anything it seems. > > Ok. so maybe the way to "bisect" this is to play with that. > > For example, does it happen even if the "something" does not have a > slash in it? IOW, you just append, say, a single 'a' character to a > name that doesn't already end in a slash? existing pathname + 'a' = fine. existing pathname + '/' + 'a' = boom. > And if it still does happen with that, perhaps you could have some > logic that only appends the 'a' to names that end with numbers. Does > it stop happening? Looks like if I do this.. if (isdigit(newpath[len]) != 0) { newpath[len] = '/'; newpath[len+1] = 'A'; newpath[len+2] = 0; no bug. If I change that to == 0, I get the bug. > The machine keeps running, right? So you can try this out without > rebooting, just changing when you append the character? Sometimes it gets wedged somewhere, so not always. Quick to reboot though, so no biggie. Now trying to lower the frequency at which it does the mangling to pinpoint the affected file(s) I need to run at least 8 child processes (-C8) to get this to happen (machine has 4 cores). Unfortunatly that means the logging gets a bit spewy if they're all mangling at the same time. Dave -- 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/