Linux NFS development
 help / color / mirror / Atom feed
* kernel BUG at fs/nfs/namespace.c:108!
@ 2008-08-03 10:07 Shahar Klein
       [not found] ` <72924.9082.qm-OZWcxxNrvPKvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Shahar Klein @ 2008-08-03 10:07 UTC (permalink / raw)
  To: linux-nfs

Hi  All

I came across this panic due to bad server and I am wondering
why should an nfs client panic when stumbling upon an IS_ROOT dentry
in the point where it tries to cross mount. I mean: should an 'Innocent' client
'pay' for bad server behavior?

Is it unsafe to just clear the path and return error?


--- a/namespace.c       2008-08-03 12:29:21.000000000 +0300
+++ b/namespace.c       2008-08-03 12:30:54.000000000 +0300
@@ -100,7 +100,11 @@

        dprintk("--> nfs_follow_mountpoint()\n");
  
-       BUG_ON(IS_ROOT(dentry));
+       if (IS_ROOT(dentry)) {
+                 err = -EBUSY; // or any reasonable error
+                 goto out_err;
+                                                                                
+       }
        dprintk("%s: enter\n", __FUNCTION__);
        dput(nd->dentry);
        nd->dentry = dget(dentry);



      

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-04 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-03 10:07 kernel BUG at fs/nfs/namespace.c:108! Shahar Klein
     [not found] ` <72924.9082.qm-OZWcxxNrvPKvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2008-08-04 17:48   ` J. Bruce Fields
2008-08-04 18:27   ` Frank Filz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox