Re: "NFS: Buggy server - nlink == 0!" & segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 27 Sep 2009 16:04:00 -0400
Andy Mastbaum <mastbaum@xxxxxxxxxxxxx> wrote:

> Hello. I have a bunch of Linux (2.6.18-128.1.1.el5, RHEL 5.3) boxen that 
> mount NFS shares from Solaris, and one died recently in a conflagration 
> of kernel segfaults following an NFS error:
> 
> Sep 11 19:37:12 nubar6 kernel: NFS: Buggy server - nlink == 0!
> Sep 11 19:47:57 nubar6 kernel: gdb[28311]: segfault at 00002b4888e73c0b 
> rip 0000000000508f20 rsp 00007fff4112c988 error 4
> Sep 11 19:55:42 nubar6 kernel: NFS: Buggy server - nlink == 0!
> Sep 11 19:55:42 nubar6 kernel: NFS: Buggy server - nlink == 0!
> Sep 11 20:10:27 nubar6 kernel: NFS: giant filename in readdir (len 201)!
> Sep 11 20:10:42 nubar6 kernel: NFS: giant filename in readdir (len 201)!
> ...
> Sep 11 20:36:12 nubar6 kernel: gdb[21443]: segfault at 00002aec9e92d90c 
> rip 000000000050be3e rsp 00007fff6fa92250 error 4
> Sep 11 22:09:42 nubar6 kernel: gdb[6258]: segfault at 000000010b7023b5 
> rip 0000000000508ea0 rsp 00007fff8d39da88 error 4
> ...
> 
> Perhaps the Solaris NFS server is indeed buggy, but shouldn't this be 
> caught/handled by the Linux NFS client? Any thoughts/suggestions?
> 
> Thanks!
> 

Did the kernel actually spew an oops as well?

>From what you've posted here, it doesn't look like the kernel panicked.
If not, then I suspect that the userspace programs doing the readdir
weren't expecting filenames as large as those that were returned.

As to why that happened in the first place, it's also hard to say. I
suspect that the data that he client was trying to parse was corrupt.
Either the server sent a corrupt response to the readdir, or something
happened to throw the alignment off and cause the response parser to
fall down.

Either way, we probably wouldn't be able to tell w/o more info. A
reliable way to reproduce it would be helpful.

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux