repeatable smbfs OOPS with 2.0.27

Dan Hollis (goemon@sasami.anime.net)
Mon, 23 Dec 1996 01:56:59 -0800 (PST)


Linux 2.0.27

Doing a chmod on an SMB filesystem mount point causes a kernel OOPS and
the filesystem becomes impossible to unmount.

[sasami /] smbmount //server/mydir /mnt2 -I some.ip.address
[sasami /] chmod og+w mnt2
zsh: segmentation fault chmod og+w mnt2

general protection: 0000
CPU: 0
EIP: 0010:[<0385b0d2>]
EFLAGS: 00010286
eax: f000e2c3 ebx: 00a339ee ecx: 013f41ff edx: 00c90adc
esi: f000e2c3 edi: 00a339ee ebp: 00a339ee esp: 00a33960
ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
Process chmod (pid: 412, process nr: 42, stackpage=00a33000)
Stack: 00a339ee 00000000 0385b0e7 00a339ee f000e2c3 00000000 00c90b28 0385b135
00a339ee 00000000 00a33e34 00c90810 013f96c8 bffffd00 0385cfb9 00c90810
00a339ee 00000000 00c90b28 00000000 00c90810 00a33e34 013f96c8 00000000

Call Trace: [<0385b0e7>] [<0385b135>] [<0385cfb9>] [<0011af50>] [<00118803>] [<00118873>] [<00118700>]
[<0010fd4c>] [<0010fc30>] [<0010a78d>] [<0012cff3>] [<0012e0f1>] [<0015bc66>] [<0015c7c1>] [<0015c724>]
[<0015c724>] [<0015d442>] [<0010c806>] [<0010c65f>] [<0015a377>] [<001225bf>] [<0385d0c8>] [<0385f021>]
[<0010a630>] [<001533dd>] [<00121990>] [<00153410>] [<0015343a>] [<0012967a>] [<001296e8>] [<001298bb>]
[<00129454>] [<0012996c>] [<00121329>] [<0011ff72>] [<0010a602>]
Code: 8b 46 08 85 c0 75 07 89 d8 5b 5e c3 8d 36 50 53 e8 e1 ff ff

[sasami /] smbumount /mnt2
Could not umount /mnt2: Device or resource busy

smbfs is compiled as a kernel module.

Anyone know how to debug kernel modules? I *really* don't want to have
to compile it directly into the kernel in order to gdb it, but I will if
I have to.

-Dan