Re: smbfs broken?

2002-10-30 Thread Boris Popov
On Tue, 22 Oct 2002, Vitaly Markitantov wrote: When i tries to copy a file from smbfs share mounted by mount_smbfs i get an error: cp: ./filename: Bad address But when i copy a file to share i get kernel panic like this: Fatal trap 12: page fault while in kernel mode Early

Re: smbfs broken?

2002-10-24 Thread Vitaly Markitantov
On Wed, Oct 23, 2002 at 11:31:50AM -0700, Terry Lambert wrote: AHA! The reason an FFS write resulted in an SMBFS read is that you had mmap()'ed an SMBFS file, and then wrote a mapped but-not-in-core page to the target FFS file. Knowing that the code involved is in the paging path of the

Re: smbfs broken?

2002-10-24 Thread Sheldon Hearn
On (2002/10/23 11:31), Terry Lambert wrote: AHA! The reason an FFS write resulted in an SMBFS read is that you had mmap()'ed an SMBFS file, and then wrote a mapped but-not-in-core page to the target FFS file. Well, a similar problem occurred with cat(1), which doesn't use mmap(). However,

Re: smbfs broken?

2002-10-23 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 02:51:43PM -0400, John Baldwin [EMAIL PROTECTED] wrote: [snip] As someone else has pointed out, it is executing at a garbage address which is why it panic'd. My guess is that smb_smb_readx() called some function which had a buffer overflow of a variable on the stack

Re: smbfs broken?

2002-10-23 Thread John Baldwin
On 23-Oct-2002 Terry Lambert wrote: Vallo Kallaste wrote: I don't understand, then. There should be no other way that an ffs_write call can trap to needing an SMBFS page: #22 0xc03902a8 in calltrap () at {standard input}:99 #23 0xc033af01 in ffs_write (ap=0xd66ebbe8) at

Re: smbfs broken?

2002-10-23 Thread Vitaly Markitantov
On Wed, Oct 23, 2002 at 10:51:07AM -0400, John Baldwin wrote: Umm, guys. The code was dereferencing NULL pointers in the mbchain code which was fixed yesterday. Please test it out with the fixed mbchains code. Yes, it not panics now, but again, when i copy to/from smbfs share i get: cp

Re: smbfs broken?

2002-10-23 Thread Sheldon Hearn
On (2002/10/23 18:21), Vitaly Markitantov wrote: Umm, guys. The code was dereferencing NULL pointers in the mbchain code which was fixed yesterday. Please test it out with the fixed mbchains code. Yes, it not panics now, but again, when i copy to/from smbfs share i get: cp

Re: smbfs broken?

2002-10-23 Thread Sheldon Hearn
On (2002/10/23 18:00), Sheldon Hearn wrote: Confirmed with rev 1.9 of subr_mchain.c. However, I notice that this only happens with files of 8145 bytes size or larger. [server] # for i in `jot 512 7680`; do dd if=/dev/zero of=$i bs=$i count=1 done 2/dev/null [client] $ for i

Re: smbfs broken?

2002-10-23 Thread Vallo Kallaste
On Wed, Oct 23, 2002 at 06:21:44PM +0300, Vitaly Markitantov [EMAIL PROTECTED] wrote: On Wed, Oct 23, 2002 at 10:51:07AM -0400, John Baldwin wrote: Umm, guys. The code was dereferencing NULL pointers in the mbchain code which was fixed yesterday. Please test it out with the fixed

Re: smbfs broken?

2002-10-23 Thread Terry Lambert
Sheldon Hearn wrote: [client] $ for i in `jot 512 7680`; do cp /smb/urchin/pub/bytes/$i . || break; done cp: ./8145: Bad address If I truss the cp process, I get this: [...] open(/smb/urchin/pub/bytes/8145,0x0,00) = 3 (0x3) open(./8145,0x401,00) = 4 (0x4)

Re: smbfs broken?

2002-10-23 Thread John Baldwin
On 23-Oct-2002 Terry Lambert wrote: Sheldon Hearn wrote: [client] $ for i in `jot 512 7680`; do cp /smb/urchin/pub/bytes/$i . || break; done cp: ./8145: Bad address If I truss the cp process, I get this: [...] open(/smb/urchin/pub/bytes/8145,0x0,00) = 3 (0x3)

Re: smbfs broken?

2002-10-23 Thread Terry Lambert
John Baldwin wrote: What happens if you: dd if=/smb/urchin/pub/bytes/8145 of=8145 ? I expect that it works, no problem. This localizes the problem to the VOP_GETPAGES that gets hit in the SMBFS case. Umm, terry. Did you even read all of this thread? He did a simple

Re: smbfs broken?

2002-10-23 Thread Nate Lawson
On Wed, 23 Oct 2002, John Baldwin wrote: On 23-Oct-2002 Terry Lambert wrote: Sheldon Hearn wrote: [client] $ for i in `jot 512 7680`; do cp /smb/urchin/pub/bytes/$i . || break; done cp: ./8145: Bad address If I truss the cp process, I get this: [...]

Re: smbfs broken?

2002-10-23 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 01:21:09PM -0700, Terry Lambert [EMAIL PROTECTED] wrote: No, I'm doing exactly what I describe. Usual boot to multiuser, then kill all of the processes not strictly necessary (seti, fetchmail, sendmail, you-name-it), mount the smb share -ro from NT4 server, cd

Re: smbfs broken?

2002-10-23 Thread Terry Lambert
Vallo Kallaste wrote: I don't understand, then. There should be no other way that an ffs_write call can trap to needing an SMBFS page: #22 0xc03902a8 in calltrap () at {standard input}:99 #23 0xc033af01 in ffs_write (ap=0xd66ebbe8) at ../../../ufs/ffs/ffs_vnops.c:810 #24 0xc029b74d in

smbfs broken?

2002-10-22 Thread Vitaly Markitantov
When i tries to copy a file from smbfs share mounted by mount_smbfs i get an error: cp: ./filename: Bad address But when i copy a file to share i get kernel panic like this: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write,

Re: smbfs broken?

2002-10-22 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 02:01:35PM +0300, Vitaly Markitantov [EMAIL PROTECTED] wrote: When i tries to copy a file from smbfs share mounted by mount_smbfs i get an error: cp: ./filename: Bad address But when i copy a file to share i get kernel panic like this: Fatal trap 12: page fault

Re: smbfs broken?

2002-10-22 Thread Maxime Henrion
Vitaly Markitantov wrote: When i tries to copy a file from smbfs share mounted by mount_smbfs i get an error: cp: ./filename: Bad address But when i copy a file to share i get kernel panic like this: Fatal trap 12: page fault while in kernel mode fault virtual address= 0x0

RE: smbfs broken?

2002-10-22 Thread John Baldwin
On 22-Oct-2002 Vitaly Markitantov wrote: When i tries to copy a file from smbfs share mounted by mount_smbfs i get an error: cp: ./filename: Bad address But when i copy a file to share i get kernel panic like this: Fatal trap 12: page fault while in kernel mode fault virtual address

Re: smbfs broken?

2002-10-22 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 04:23:20AM -0700, Maxime Henrion [EMAIL PROTECTED] wrote: [snip] It would help a lot if you could provide a traceback. This is the one I'm seeing everytime while trying to copy file from ro smbfs mount. -current is about four days old, smbfs.ko _is_ compiled with -DSMP

Re: smbfs broken?

2002-10-22 Thread John Baldwin
On 22-Oct-2002 Vallo Kallaste wrote: On Tue, Oct 22, 2002 at 04:23:20AM -0700, Maxime Henrion [EMAIL PROTECTED] wrote: [snip] It would help a lot if you could provide a traceback. This is the one I'm seeing everytime while trying to copy file from ro smbfs mount. -current is about four

Re: smbfs broken?

2002-10-22 Thread Sheldon Hearn
On (2002/10/22 10:48), John Baldwin wrote: This is the one I'm seeing everytime while trying to copy file from ro smbfs mount. -current is about four days old, smbfs.ko _is_ compiled with -DSMP and in sync with kernel. Can you compile smbfs into your kernel 'options SMBFS' instead of as

Re: smbfs broken?

2002-10-22 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 10:48:58AM -0400, John Baldwin [EMAIL PROTECTED] wrote: Can you compile smbfs into your kernel 'options SMBFS' instead of as a module and then get a dump and provide a trace? #13 0xc0383f58 in calltrap () at {standard input}:99 #14 0xc455a66e in ?? () #15 0xc455a072

Re: smbfs broken?

2002-10-22 Thread John Baldwin
On 22-Oct-2002 Vallo Kallaste wrote: On Tue, Oct 22, 2002 at 10:48:58AM -0400, John Baldwin [EMAIL PROTECTED] wrote: Can you compile smbfs into your kernel 'options SMBFS' instead of as a module and then get a dump and provide a trace? #13 0xc0383f58 in calltrap () at {standard input}:99

Re: smbfs broken?

2002-10-22 Thread Terry Lambert
Vallo Kallaste wrote: On Tue, Oct 22, 2002 at 04:23:20AM -0700, Maxime Henrion [EMAIL PROTECTED] wrote: [snip] It would help a lot if you could provide a traceback. This is the one I'm seeing everytime while trying to copy file from ro smbfs mount. -current is about four days old,

Re: smbfs broken?

2002-10-22 Thread Vallo Kallaste
On Tue, Oct 22, 2002 at 12:15:09PM -0700, Terry Lambert [EMAIL PROTECTED] wrote: #14 0xc455a66e in ?? () #15 0xc455a072 in ?? () #16 0xc4559e87 in ?? () #17 0xc45609f8 in ?? () If you are running the smbfs.ko, either load the module symbols into gdb before asking for the traceback, or

Re: smbfs broken?

2002-10-22 Thread Terry Lambert
Vallo Kallaste wrote: It would be nice if you could give us more information as to exactly what it is you are doing, logically, to cause this problem; as things sit, it seems you are doing some evil things. No, I'm doing exactly what I describe. Usual boot to multiuser, then kill all of

Re: KSE settling in (smbfs broken) again

2001-10-14 Thread Boris Popov
On Fri, 5 Oct 2001, Sheldon Hearn wrote: I need to look at it again.. (I figured I just didn't have the time to try understand it all AND do the rest of the kernel.) Of course the best woudl be if Mr. Popov did the conversion but I believe he's incredibly busy at the moment.. Certainly

Re: KSE settling in (smbfs broken) again

2001-10-05 Thread Sheldon Hearn
On Fri, 05 Oct 2001 11:48:55 MST, Julian Elischer wrote: I need to look at it again.. (I figured I just didn't have the time to try understand it all AND do the rest of the kernel.) Of course the best woudl be if Mr. Popov did the conversion but I believe he's incredibly busy at the

KSE settling in (smbfs broken)

2001-10-05 Thread Sheldon Hearn
Hi Julian, I didn't realize that smbfs was a KSE casualty, but it's nice that you made this obvious with the following in sys/modules/Makefile: #removed while KSE settles in: # smbfs \ So at least it didn't take me long to figure out what was going on. My question is what sort of