Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933195Ab0AFX4R (ORCPT ); Wed, 6 Jan 2010 18:56:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933192Ab0AFX4K (ORCPT ); Wed, 6 Jan 2010 18:56:10 -0500 Received: from mail-out1.uio.no ([129.240.10.57]:39552 "EHLO mail-out1.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933187Ab0AFX4I (ORCPT ); Wed, 6 Jan 2010 18:56:08 -0500 Subject: Re: vfs related crash in 2.6.33-rc2 From: Trond Myklebust To: Andrew Morton Cc: OGAWA Hirofumi , Marvin , Linux Kernel Mailing List , linux-nfs@vger.kernel.org In-Reply-To: <20100106154123.b12547f3.akpm@linux-foundation.org> References: <200912301733.19077.marvin24@gmx.de> <87637oi6v8.fsf@devron.myhome.or.jp> <200912302144.36718.marvin24@gmx.de> <87637omb4b.fsf@devron.myhome.or.jp> <20100106154123.b12547f3.akpm@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 06 Jan 2010 18:55:58 -0500 Message-ID: <1262822158.4251.179.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) Content-Transfer-Encoding: 7bit X-UiO-Ratelimit-Test: rcpts/h 10 msgs/h 2 sum rcpts/h 15 sum msgs/h 2 total rcpts 2177 max rcpts/h 27 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: EAB5D0F42A3B8A81A91FB77EB81A80882639E48C X-UiO-SPAM-Test: remote_host: 68.40.206.115 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 2 total 78 max/h 7 blacklist 0 greylist 0 ratelimit 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2572 Lines: 79 On Wed, 2010-01-06 at 15:41 -0800, Andrew Morton wrote: > On Thu, 31 Dec 2009 05:59:32 +0900 > OGAWA Hirofumi wrote: > > > Marvin writes: > > > > >> Marvin writes: > > >> > Hi, > > >> > > > >> > I'm getting a lot of these: > > >> > > > >> > kernel: general protection fault: 0000 [#1] SMP > > >> > kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:18.3/modalias > > >> > kernel: CPU 0 > > >> > kernel: Pid: 12177, comm: packagekitd Not tainted 2.6.33-rc2 #1 > > >> > ... > > >> > > > >> > filesystem is ext4 (in case it matters). > > >> > > >> BTW, are you using nfs client on this machine? > > >> > > > > > > um - yes, now that I think about it... I killed a nfs umount process (because of an > > > offline server) shortly before the oopses started to fire. > > > > OK. Probably, this oops would be same with one which happened on my > > machine recently. That path in patch corrupts dcache hash, so it can be > > the cause of strange behavior or oops on dcache hash. > > > > If so, the attached patch would fix it. > > > > Thanks. > > -- > > OGAWA Hirofumi > > > > > > Recent change is missing to update "rehash". With that change, it will > > become the cause of adding dentry to hash twice. > > > > This explains the reason of Oops (dereference the freed dentry in > > __d_lookup()) on my machine. > > > > Signed-off-by: OGAWA Hirofumi > > --- > > > > fs/nfs/dir.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff -puN fs/nfs/dir.c~nfs-d_rehash-fix fs/nfs/dir.c > > --- linux-2.6/fs/nfs/dir.c~nfs-d_rehash-fix 2009-12-28 06:18:09.000000000 +0900 > > +++ linux-2.6-hirofumi/fs/nfs/dir.c 2009-12-28 06:18:16.000000000 +0900 > > @@ -1615,6 +1615,7 @@ static int nfs_rename(struct inode *old_ > > goto out; > > > > new_dentry = dentry; > > + rehash = NULL; > > new_inode = NULL; > > } > > } > > Guys, what's the status of this fix? Did Marvin have a chance to test > it? Are the NFS developers aware of it? > > Thanks. > Sorry for the delay. The above fix looks correct to me, but I too would like a confirmation that it fixes the Oops before I push it to Linus. In the meantime, I've committed it to my linux-next branch. Cheers Trond -- 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/