lkml.org 
[lkml]   [1996]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject[!] smbfs trauma
Folks -

Reading the thread about smbfs reminded me of something that I haven't
checked in a while. Back in the 1.3.~70 kernels, I noticed a problem
with mounting a smbfs drive from my Win95 box. I posted something
about it, got something nebulous back and never really thought about
it again.

What used to happen, and by the way, still does as of 2.0.22, is that
if a program rapid-fire stats() too many files, something breaks.

[screen clips]
# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda2 1496186 1223124 195749 86% /
/dev/hdb1 805780 174958 589192 23% /usr/homes/iw
/dev/hda1 39038 776 36247 2% /boot
//tao/C 1496186 1223124 195749 86% /usr/homes/nicholas/tao/C
//tao/CDROM 129440 129440 0 100% /usr/homes/nicholas/tao/CDROM
//tao/D 1277888 623168 654720 49% /usr/homes/nicholas/tao/D
# cat /proc/cpuinfo
processor : 0
cpu : 586
model : Pentium 75+
vendor_id : GenuineIntel
stepping : 5
fdiv_bug : no
hlt_bug : no
fpu : yes
fpu_exception : yes
cpuid : yes
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips : 29.80
# uname -a
Linux neko 2.0.22 #2 Wed Oct 16 14:16:35 EDT 1996 i586
# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-unknown-linux/2.7.2/specs
gcc version 2.7.2
# ls --version
GNU fileutils 3.12
# find --version
GNU find version 4.1

[the stuff that doesn't work]

# ls -ltR /usr/homes/nicholas/tao
..... lotsa files ..... (612 directories to be EXACT)
Segmentation fault

< repair system by umounting and remounting >

# find /usr/homes/nicholas/tao
..... lotsa files ..... (612 directories AGAIN to be exact)
< hang >
^C
#

The error messages logged by syslog are:

Oct 18 18:14:30 neko linux: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko linux: smb_receive: receive error: -5
Oct 18 18:14:30 neko kernel: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko kernel: smb_receive: receive error: -5
Oct 18 18:14:30 neko kernel: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko kernel: smb_receive: receive error: -5
Oct 18 18:14:30 neko kernel: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko kernel: smb_receive: receive error: -5
Oct 18 18:14:30 neko kernel: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko kernel: smb_receive: receive error: -5
Oct 18 18:14:30 neko kernel: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko kernel: smb_receive: receive error: -5
Oct 18 18:14:30 neko linux: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:30 neko linux: smb_receive: receive error: -5
Oct 18 18:14:33 neko linux: smb_receive_raw: Received length (3338) > max_xmit (2920)!
Oct 18 18:14:33 neko linux: smb_receive: receive error: -5

A tcpdump taken of the session reveals this in the end (sorry for the
length, but I'm not quite what is useful and what isn't. Everything
above this point looks like the first 8 lines. I don't notice anything
weird, but then again I don't know what I'm looking for).

18:25:13.024921 tao.binary9.net.netbios-ssn > neko.binary9.net.1266: P 1163138:1163177(39) ack 994170 win 7774 (DF)
18:25:13.024921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 994170:994252(82) ack 1163177 win 31744 (DF)
18:25:13.034921 tao.binary9.net.netbios-ssn > neko.binary9.net.1266: P 1163177:1163216(39) ack 994252 win 7692 (DF)
18:25:13.034921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 994252:994330(78) ack 1163216 win 31744 (DF)
18:25:13.034921 tao.binary9.net.netbios-ssn > neko.binary9.net.1266: P 1163216:1163275(59) ack 994330 win 7614 (DF)
18:25:13.034921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 994330:994456(126) ack 1163275 win 31744 (DF)
18:25:13.054921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 994456:994519(63) ack 1163614 win 31744 (DF)
18:25:14.004921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: . ack 1181330 win 31744
18:25:14.074921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 1014256:1014319(63) ack 1181330 win 31744 (DF)
18:25:14.074921 tao.binary9.net.netbios-ssn > neko.binary9.net.1266: P 1181330:1181369(39) ack 1014319 win 8697 (DF)
18:25:14.074921 neko.binary9.net.1266 > tao.binary9.net.netbios-ssn: P 1014319:1014382(63) ack 1181369 win 31744 (DF)
18:25:14.084921 tao.binary9.net.netbios-ssn > neko.binary9.net.1266: P 1181369:1181408(39) ack 1014382 win 8634 (DF)
18:25:14.654921 neko.binary9.net.1323 > tao.binary9.net.netbios-ssn: F 1718018898:1718018898(0) ack 341992010 win 31744
18:25:14.654921 tao.binary9.net.netbios-ssn > neko.binary9.net.1323: R 341992010:341992010(0) win 0
18:25:14.674921 neko.binary9.net.1324 > tao.binary9.net.netbios-ssn: F 1734153448:1734153448(0) ack 341992033 win 31744
18:25:14.674921 tao.binary9.net.netbios-ssn > neko.binary9.net.1324: R 341992033:341992033(0) win 0
18:25:17.494921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: S 2916418080:2916418080(0) win 31744 <mss 1460>
18:25:17.494921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: S 341991978:341991978(0) ack 2916418081 win 8760 <mss 1460> (DF)
18:25:17.494921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: . ack 1 win 31744
18:25:17.494921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: P 1:77(76) ack 1 win 31744 (DF)
18:25:17.494921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: P 1:5(4) ack 77 win 8684 (DF)
18:25:17.494921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: P 77:242(165) ack 5 win 31744 (DF)
18:25:17.494921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: P 5:86(81) ack 242 win 8519 (DF)
18:25:17.494921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: P 242:343(101) ack 86 win 31744 (DF)
18:25:17.504921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: P 86:131(45) ack 343 win 8418 (DF)
18:25:17.504921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: P 343:395(52) ack 131 win 31744 (DF)
18:25:17.504921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: P 131:174(43) ack 395 win 8366 (DF)
18:25:17.504921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: P 395:515(120) ack 174 win 31744 (DF)
18:25:17.514921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: . 174:1634(1460) ack 515 win 8246 (DF)
18:25:17.514921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: . 1634:3094(1460) ack 515 win 8246 (DF)
18:25:17.514921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: P 3094:3516(422) ack 515 win 8246 (DF)
18:25:17.524921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: . ack 3516 win 30720
18:25:17.524921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 3516 win 31744
18:25:17.524921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: S 1269601171:1269601171(0) win 512 <mss 1460>
18:25:17.524921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: S 341992011:341992011(0) ack 1269601172 win 8760 <mss 1460> (DF)
18:25:17.524921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: . ack 1 win 31744
18:25:17.524921 tao.binary9.net.netbios-ssn > neko.binary9.net.1326: F 3516:3516(0) ack 516 win 8246 (DF)
18:25:17.524921 neko.binary9.net.1326 > tao.binary9.net.netbios-ssn: . ack 3517 win 31744
18:25:17.534921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: P 1:77(76) ack 1 win 31744 (DF)
18:25:17.534921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: P 1:5(4) ack 77 win 8684 (DF)
18:25:17.534921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: P 77:242(165) ack 5 win 31744 (DF)
18:25:17.534921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: P 5:86(81) ack 242 win 8519 (DF)
18:25:17.534921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: P 242:343(101) ack 86 win 31744 (DF)
18:25:17.534921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: P 86:131(45) ack 343 win 8418 (DF)
18:25:17.534921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: P 343:395(52) ack 131 win 31744 (DF)
18:25:17.544921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: P 131:174(43) ack 395 win 8366 (DF)
18:25:17.544921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: P 395:515(120) ack 174 win 31744 (DF)
18:25:17.554921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: . 174:1634(1460) ack 515 win 8246 (DF)
18:25:17.554921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: . 1634:3094(1460) ack 515 win 8246 (DF)
18:25:17.554921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: P 3094:3516(422) ack 515 win 8246 (DF)
18:25:17.554921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 3516 win 31744
18:25:17.554921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: S 3583016265:3583016265(0) win 512 <mss 1460>
18:25:17.564921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: . ack 3516 win 31744
18:25:17.564921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: S 341992048:341992048(0) ack 3583016266 win 8760 <mss 1460> (DF)
18:25:17.564921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: . ack 1 win 31744
18:25:17.564921 tao.binary9.net.netbios-ssn > neko.binary9.net.1328: F 3516:3516(0) ack 516 win 8246 (DF)
18:25:17.564921 neko.binary9.net.1328 > tao.binary9.net.netbios-ssn: . ack 3517 win 31744
18:25:17.574921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: P 1:77(76) ack 1 win 31744 (DF)
18:25:17.574921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: P 1:5(4) ack 77 win 8684 (DF)
18:25:17.574921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: P 77:242(165) ack 5 win 31744 (DF)
18:25:17.574921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: P 5:86(81) ack 242 win 8519 (DF)
18:25:17.584921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: P 242:343(101) ack 86 win 31744 (DF)
18:25:17.584921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: P 86:131(45) ack 343 win 8418 (DF)
18:25:17.584921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: P 343:395(52) ack 131 win 31744 (DF)
18:25:17.584921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: P 131:174(43) ack 395 win 8366 (DF)
18:25:17.584921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: P 395:515(120) ack 174 win 31744 (DF)
18:25:17.594921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: . 174:1634(1460) ack 515 win 8246 (DF)
18:25:17.604921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: . 1634:3094(1460) ack 515 win 8246 (DF)
18:25:17.604921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: P 3094:3516(422) ack 515 win 8246 (DF)
18:25:17.604921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 3516 win 31744
18:25:17.604921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: S 1949264635:1949264635(0) win 512 <mss 1460>
18:25:17.604921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: S 341992092:341992092(0) ack 1949264636 win 8760 <mss 1460> (DF)
18:25:17.604921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: . ack 1 win 31744
18:25:17.604921 tao.binary9.net.netbios-ssn > neko.binary9.net.1329: F 3516:3516(0) ack 516 win 8246 (DF)
18:25:17.604921 neko.binary9.net.1329 > tao.binary9.net.netbios-ssn: . ack 3517 win 31744
18:25:17.614921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: P 1:77(76) ack 1 win 31744 (DF)
18:25:17.614921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: P 1:5(4) ack 77 win 8684 (DF)
18:25:17.614921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: P 77:242(165) ack 5 win 31744 (DF)
18:25:17.614921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: P 5:86(81) ack 242 win 8519 (DF)
18:25:17.614921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: P 242:343(101) ack 86 win 31744 (DF)
18:25:17.614921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: P 86:131(45) ack 343 win 8418 (DF)
18:25:17.614921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: P 343:395(52) ack 131 win 31744 (DF)
18:25:17.614921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: P 131:174(43) ack 395 win 8366 (DF)
18:25:17.614921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: P 395:515(120) ack 174 win 31744 (DF)
18:25:17.634921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: . 174:1634(1460) ack 515 win 8246 (DF)
18:25:17.634921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: . 1634:3094(1460) ack 515 win 8246 (DF)
18:25:17.634921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: P 3094:3516(422) ack 515 win 8246 (DF)
18:25:17.634921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 3516 win 31744
18:25:17.634921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: S 1710733485:1710733485(0) win 512 <mss 1460>
18:25:17.634921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: S 341992126:341992126(0) ack 1710733486 win 8760 <mss 1460> (DF)
18:25:17.634921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: . ack 1 win 31744
18:25:17.634921 tao.binary9.net.netbios-ssn > neko.binary9.net.1330: F 3516:3516(0) ack 516 win 8246 (DF)
18:25:17.634921 neko.binary9.net.1330 > tao.binary9.net.netbios-ssn: . ack 3517 win 31744
18:25:17.644921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: P 1:77(76) ack 1 win 31744 (DF)
18:25:17.644921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: P 1:5(4) ack 77 win 8684 (DF)
18:25:17.644921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: P 77:242(165) ack 5 win 31744 (DF)
18:25:17.644921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: P 5:86(81) ack 242 win 8519 (DF)
18:25:17.644921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: P 242:343(101) ack 86 win 31744 (DF)
18:25:17.644921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: P 86:131(45) ack 343 win 8418 (DF)
18:25:17.644921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: P 343:395(52) ack 131 win 31744 (DF)
18:25:17.654921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: P 131:174(43) ack 395 win 8366 (DF)
18:25:17.654921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: P 395:515(120) ack 174 win 31744 (DF)
18:25:17.664921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: . 174:1634(1460) ack 515 win 8246 (DF)
18:25:17.664921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 1634 win 31744
18:25:17.664921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: . 1634:3094(1460) ack 515 win 8246 (DF)
18:25:17.664921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: P 3094:3516(422) ack 515 win 8246 (DF)
18:25:17.664921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: F 3516:3516(0) ack 516 win 8246 (DF)
18:25:17.674921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: . ack 3094 win 31744
18:25:17.864921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: F 515:515(0) ack 3094 win 31744
18:25:17.864921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: . ack 516 win 8246 (DF)
18:25:19.254921 tao.binary9.net.netbios-ssn > neko.binary9.net.1331: FP 3094:3516(422) ack 516 win 8246 (DF)
18:25:19.254921 neko.binary9.net.1331 > tao.binary9.net.netbios-ssn: . ack 3517 win 31321

And finally, the bit of code from /usr/src/linux/fs/smbfs/sock.c that
is producing the error is:

/* The length in the RFC NB header is the raw data length */
len = smb_len(peek_buf);
if (len > max_raw_length) {
printk("smb_receive_raw: Received length (%d) > max_xmit (%d)!\n",
len, max_raw_length);
return -EIO;
}

If there are any more questions, let me know! I'll be happy to help
debug this (if I can).







N!
------------------------------------------------------------------------------
Nicholas J. Leon nicholas@binary9.net
"Elegance through Simplicity" http://www.binary9.net/nicholas

"Allow me to introduce myself, my name is
Wile E. Coyote, Soopah-Genius."

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.041 / U:1.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site