* Re: vfs related crash in 2.6.33-rc2 [not found] ` <87637omb4b.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org> @ 2010-01-06 23:41 ` Andrew Morton 2010-01-06 23:55 ` Trond Myklebust 0 siblings, 1 reply; 4+ messages in thread From: Andrew Morton @ 2010-01-06 23:41 UTC (permalink / raw) To: OGAWA Hirofumi Cc: Marvin, Linux Kernel Mailing List, Trond Myklebust, linux-nfs On Thu, 31 Dec 2009 05:59:32 +0900 OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote: > Marvin <marvin24@gmx.de> writes: > > >> Marvin <marvin24@gmx.de> 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 <hirofumi@mail.parknet.co.jp> > > > 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 <hirofumi@mail.parknet.co.jp> > --- > > 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vfs related crash in 2.6.33-rc2 2010-01-06 23:41 ` vfs related crash in 2.6.33-rc2 Andrew Morton @ 2010-01-06 23:55 ` Trond Myklebust 2010-01-07 9:27 ` Marvin 0 siblings, 1 reply; 4+ messages in thread From: Trond Myklebust @ 2010-01-06 23:55 UTC (permalink / raw) To: Andrew Morton Cc: OGAWA Hirofumi, Marvin, Linux Kernel Mailing List, linux-nfs On Wed, 2010-01-06 at 15:41 -0800, Andrew Morton wrote: > On Thu, 31 Dec 2009 05:59:32 +0900 > OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote: > > > Marvin <marvin24@gmx.de> writes: > > > > >> Marvin <marvin24@gmx.de> 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 <hirofumi@mail.parknet.co.jp> > > > > > > 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 <hirofumi@mail.parknet.co.jp> > > --- > > > > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vfs related crash in 2.6.33-rc2 2010-01-06 23:55 ` Trond Myklebust @ 2010-01-07 9:27 ` Marvin 2010-01-07 13:45 ` Trond Myklebust 0 siblings, 1 reply; 4+ messages in thread From: Marvin @ 2010-01-07 9:27 UTC (permalink / raw) To: Trond Myklebust Cc: Andrew Morton, OGAWA Hirofumi, Linux Kernel Mailing List, linux-nfs Hi, > On Wed, 2010-01-06 at 15:41 -0800, Andrew Morton wrote: > > On Thu, 31 Dec 2009 05:59:32 +0900 > > > > OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote: > > > Marvin <marvin24@gmx.de> writes: > > > >> Marvin <marvin24@gmx.de> 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. > > > > 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. It seems that I send the reply to Hirofumi only, sorry for that. The patch works fine - no oops anymore. Thanks Marvin ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vfs related crash in 2.6.33-rc2 2010-01-07 9:27 ` Marvin @ 2010-01-07 13:45 ` Trond Myklebust 0 siblings, 0 replies; 4+ messages in thread From: Trond Myklebust @ 2010-01-07 13:45 UTC (permalink / raw) To: Marvin; +Cc: Andrew Morton, OGAWA Hirofumi, Linux Kernel Mailing List, linux-nfs On Thu, 2010-01-07 at 10:27 +0100, Marvin wrote: > It seems that I send the reply to Hirofumi only, sorry for that. The patch works fine > - no oops anymore. OK. Thanks for testing! Trond ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-07 13:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200912301733.19077.marvin24@gmx.de>
[not found] ` <87637oi6v8.fsf@devron.myhome.or.jp>
[not found] ` <200912302144.36718.marvin24@gmx.de>
[not found] ` <87637omb4b.fsf@devron.myhome.or.jp>
[not found] ` <87637omb4b.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
2010-01-06 23:41 ` vfs related crash in 2.6.33-rc2 Andrew Morton
2010-01-06 23:55 ` Trond Myklebust
2010-01-07 9:27 ` Marvin
2010-01-07 13:45 ` Trond Myklebust
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).