Hi all..
I have found some problems on smbfs module in 2.4.18 kernel.
I compiled it by myself (not the very first kernel compilation in my life
;-)) and then I have got it. Looks like it touch smbfs module as when I
recompile 2.4.18 modules with smbfs sources changed to sources of smbfs
from 2.4.17 problem disappears!!
My mainboard is Abit BE6 with Pentium III 450 MHz. I am using SuSE 7.3 with
all available patches. Base kernel was 2.4.16 from SuSE update but I wanted
to change it now to 2.4.18. The same problem apperas in fact in 2.4.18
kernel distributed by Hubert Mantel from SuSE team. But as I realized it is
also in vanila - I am reporting it to main developers I hope.
Here are a lot of infos I could get during and after teh problem appears
(lucky taht system does not hangs totally ;-))
If anything else is needed please let me know. Hope it can help you to find
teh problem out.
Best regard
Marcin Gryszczuk.
/*----------------------------------*/
Here is the description.
Mounting SMBFS drive (WinNT 4.0 DE SP6) with:
linux:~ # mount -t smbfs -o username=xxx,password=xxx //comp017/d$ /mnt
linux:~ # lsmod
Module Size Used by Not tainted
nls_cp437 4384 1 (autoclean)
nls_iso8859-1 2880 1 (autoclean)
smbfs 31680 1 (autoclean)
serial 43968 0 (autoclean) (unused)
af_packet 11144 2 (autoclean)
ipt_TCPMSS 2368 1 (autoclean)
ipt_TOS 1024 22 (autoclean)
ipt_MASQUERADE 1216 2 (autoclean)
ipt_MARK 736 13 (autoclean)
ipt_LOG 3168 92 (autoclean)
ipt_state 608 169 (autoclean)
ip_nat_ftp 2944 0 (unused)
ip_conntrack_ftp 3200 0 (unused)
smc-ultra 5024 1 (autoclean)
ne 6432 1 (autoclean)
8390 5856 0 (autoclean) [smc-ultra ne]
isa-pnp 27816 0 (autoclean) [serial smc-ultra ne]
rtl8139 12672 1 (autoclean)
mii 1040 0 (autoclean) [rtl8139]
ipt_REJECT 2784 3 (autoclean)
iptable_mangle 2144 1 (autoclean)
iptable_nat 12756 2 (autoclean) [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 12652 3 (autoclean) [ipt_MASQUERADE ipt_state
ip_nat_ftp ip_conntrack_ftp iptable_nat]
iptable_filter 1728 1 (autoclean)
ip_tables 10400 12 [ipt_TCPMSS ipt_TOS ipt_MASQUERADE
ipt_MARK ipt_LOG ipt_state
ipt_REJECT iptable_mangle iptable_nat iptable_filter]
linux:~ # modprobe -s smbfs /* To get error messages via syslog !! */
linux:~ # cp -r /mnt/Eudora/attach* /DATA/Email/xxx/eudora &
[1] 3079
linux:~ #
[1]+ Segmentation fault cp -r /mnt/Eudora/attach* /DATA/Email/xxx/eudora
!!! Probably problem in smbfs module in 2.4.18 !!!
Using vanila 2.4.18 kernel
from /var/log/messages
Mar 9 17:02:10 linux kernel: Unable to handle kernel paging request at
virtual address e0000000
Mar 9 17:02:10 linux kernel: printing eip:
Mar 9 17:02:10 linux kernel: e0b4ea29
Mar 9 17:02:10 linux kernel: *pde = 00000000
Mar 9 17:02:10 linux kernel: Oops: 0000
Mar 9 17:02:10 linux kernel: CPU: 0
Mar 9 17:02:10 linux kernel: EIP: 0010:[<e0b4ea29>] Not tainted
Mar 9 17:02:10 linux kernel: EFLAGS: 00010246
Mar 9 17:02:10 linux kernel: eax: 00000000 ebx: e0000000 ecx:
f69bc3fd edx: 14484b43
Mar 9 17:02:10 linux kernel: esi: df1b3be1 edi: d601fe34 ebp:
d601fecc esp: d601fde4
Mar 9 17:02:10 linux kernel: ds: 0018 es: 0018 ss: 0018
Mar 9 17:02:10 linux kernel: Process cp (pid: 3079, stackpage=d601f000)
Mar 9 17:02:10 linux kernel: Stack: c0138d00 d601fe9c e0b7651c 00000000
00000000 00000000 00000000 d9137260
Mar 9 17:02:10 linux kernel: d9641740 7273752f 0000bf98 65542e2f
00000000 c1562680 d589a000 00000cf1
Mar 9 17:02:10 linux kernel: 00000003 ffffffea 00000001 000000f3
e0b4d315 d69f2b40 d601ffb0 c0138d00
Mar 9 17:02:10 linux kernel: Call Trace: [<c0138d00>] [<e0b4d315>]
[<c0138d00>] [<c0138d00>] [<e0b4d3a4>]
Mar 9 17:02:10 linux kernel: [<c0138d00>] [<e0b4e28b>]
[<c0138d00>]
[<c013897b>] [<c0138d00>] [<c0138e63>]
Mar 9 17:02:10 linux kernel: [<c0138d00>] [<c011ff38>]
[<c0106d83>]
Mar 9 17:02:10 linux kernel:
Mar 9 17:02:10 linux kernel: Code: 8a 03 43 89 c2 c1 e2 04 01 f2 c1 e8 04
01 c2 8d 04 92 8d 34
linux:~ # cat /proc/version
Linux version 2.4.18 (root@linux) (gcc version 2.95.3 20010315 (SuSE)) #2
Sat Mar 9 16:33:35 CET 2002
linux:/usr/src/linux-2.4.18/scripts # ./ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
Linux linux 2.4.18 #2 Sat Mar 9 16:33:35 CET 2002 i686 unknown
Gnu C 2.95.3
Gnu make 3.79.1
binutils 2.11.90.0.29
util-linux 2.11i
mount 2.11i
modutils 2.4.12
e2fsprogs 1.24a
reiserfsprogs 3.x.0k-pre10
PPP 2.4.1
isdn4k-utils 3.1pre2
Linux C Library x 1 root root 1384040 Dec 18 17:24
/lib/libc.so.6
Dynamic linker (ldd) 2.2.4
Procps 2.0.7
Net-tools 1.60
Kbd 1.04
Sh-utils 2.0
Modules Loaded nls_cp437 nls_iso8859-1 smbfs serial af_packet
ipt_TCPMSS ipt_TOS ipt_MASQUERADE
ipt_MARK ipt_LOG ipt_state ip_nat_ftp ip_conntrack_ftp smc-ultra ne 8390
isa-pnp rtl8139 mii ipt_REJECT
iptable_mangle iptable_nat ip_conntrack iptable_filter ip_tables
linux:~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 451.028
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 mmx fxsr sse
bogomips : 897.84
linux:~ # cat /proc/modules
nls_cp437 4384 1 (autoclean)
nls_iso8859-1 2880 1 (autoclean)
smbfs 31680 1 (autoclean)
serial 43968 0 (autoclean) (unused)
af_packet 11144 2 (autoclean)
ipt_TCPMSS 2368 1 (autoclean)
ipt_TOS 1024 22 (autoclean)
ipt_MASQUERADE 1216 2 (autoclean)
ipt_MARK 736 13 (autoclean)
ipt_LOG 3168 92 (autoclean)
ipt_state 608 169 (autoclean)
ip_nat_ftp 2944 0 (unused)
ip_conntrack_ftp 3200 0 (unused)
smc-ultra 5024 1 (autoclean)
ne 6432 1 (autoclean)
8390 5856 0 (autoclean) [smc-ultra ne]
isa-pnp 27816 0 (autoclean) [serial smc-ultra ne]
rtl8139 12672 1 (autoclean)
mii 1040 0 (autoclean) [rtl8139]
ipt_REJECT 2784 3 (autoclean)
iptable_mangle 2144 1 (autoclean)
iptable_nat 12756 2 (autoclean) [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 12652 3 (autoclean) [ipt_MASQUERADE ipt_state
ip_nat_ftp ip_conntrack_ftp iptable_nat]
iptable_filter 1728 1 (autoclean)
ip_tables 10400 12 [ipt_TCPMSS ipt_TOS ipt_MASQUERADE
ipt_MARK ipt_LOG ipt_state ipt_REJECT iptable_mangle iptable_nat
iptable_filter]
linux:~ # cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0240-025f : eth2
02f8-02ff : serial(auto)
0320-033f : eth1
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
4000-403f : Intel Corp. 82371AB PIIX4 ACPI
5000-501f : Intel Corp. 82371AB PIIX4 ACPI
d000-d01f : Intel Corp. 82371AB PIIX4 USB
d400-d4ff : Realtek Semiconductor Co., Ltd. RTL-8139
d400-d4ff : 8139too
d800-d807 : Triones Technologies, Inc. HPT366 / HPT370
dc00-dc03 : Triones Technologies, Inc. HPT366 / HPT370
e000-e0ff : Triones Technologies, Inc. HPT366 / HPT370
e000-e007 : ide2
e010-e0ff : HPT366
e400-e407 : Triones Technologies, Inc. HPT366 / HPT370 (#2)
e400-e407 : ide3
e800-e803 : Triones Technologies, Inc. HPT366 / HPT370 (#2)
e802-e802 : ide3
ec00-ecff : Triones Technologies, Inc. HPT366 / HPT370 (#2)
ec00-ec07 : ide3
ec10-ecff : HPT366
f000-f00f : Intel Corp. 82371AB PIIX4 IDE
f000-f007 : ide0
f008-f00f : ide1
linux:~ # cat /proc/iomem
00000000-0009ffff : System RAM
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000c97ff : Extension ROM
000f0000-000fffff : System ROM
00100000-1fffffff : System RAM
00100000-001d4763 : Kernel code
001d4764-002041c3 : Kernel data
d0000000-d3ffffff : S3 Inc. 86c764/765 [Trio32/64/64V+]
d4000000-d5ffffff : Intel Corp. 440BX/ZX - 82443BX/ZX Host bridge
d7000000-d70000ff : Realtek Semiconductor Co., Ltd. RTL-8139
d7000000-d70000ff : 8139too
ffff0000-ffffffff : reserved
linux:~ # lspci -vvv
00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR-
<PERR-
Latency: 32
Region 0: Memory at d4000000 (32-bit, prefetchable) [size=32M]
Capabilities: [a0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev
03) (prog-if 00 [Normal
decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: fff00000-000fffff
Prefetchable memory behind bridge: fff00000-000fffff
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B+
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
(prog-if 80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 32
Region 4: I/O ports at f000 [size=16]
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 32
Interrupt: pin D routed to IRQ 12
Region 4: I/O ports at d000 [size=32]
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Interrupt: pin ? routed to IRQ 9
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 32 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 12
Region 0: I/O ports at d400 [size=256]
Region 1: Memory at d7000000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0f.0 VGA compatible controller: S3 Inc. 86c764/765 [Trio32/64/64V+] (rev
44) (prog-if 00 [VGA])
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory at d0000000 (32-bit, non-prefetchable) [size=64M]
Expansion ROM at <unassigned> [disabled] [size=64K]
00:13.0 Unknown mass storage controller: Triones Technologies, Inc. HPT366
(rev 01)
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 120 (2000ns min, 2000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at d800 [size=8]
Region 1: I/O ports at dc00 [size=4]
Region 4: I/O ports at e000 [size=256]
Expansion ROM at <unassigned> [disabled] [size=128K]
00:13.1 Unknown mass storage controller: Triones Technologies, Inc. HPT366
(rev 01)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR-
<PERR-
Latency: 120 (2000ns min, 2000ns max), cache line size 08
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at e400 [size=8]
Region 1: I/O ports at e800 [size=4]
Region 4: I/O ports at ec00 [size=256]
NO SCSI!!
3 harddrives
/dev/hda - ST320430A (5 partitions all with reiserfs)
/dev/hdc - ST320413A (not mounted at all)
/dev/hdg - ST38410A (connected to HPT 366) - /DATA is mounted from
/dev/hdg5 - ext2fs.
MainBoard Abit BE6
Can not umount /mnt -
linux:~ # umount /mnt
umount: /mnt: device is busy
linux:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 4.9G 3.4G 1.5G 69% /
devpts 4.9G 3.4G 1.5G 69% /dev/pts
/dev/hda5 15M 9.3M 5.0M 65% /boot
/dev/hda7 4.2G 2.0G 2.1G 49% /home
/dev/hdg5 7.8G 5.4G 2.1G 72% /DATA
/dev/hda8 4.9G 3.9G 1.0G 80% /PROG
/dev/hda9 4.9G 3.1G 1.8G 62% /BACK
And here it hangs!!
Can not remove smbfs module
linux:~ # rmmod smbfs
smbfs: Device or resource busy
Then I have took all source files for ./fs/smbfs from 2.4.17 kernel and put
into 2.4.18 source tree and
I just made make modules (on first compiled 2.4.18 kernel that I have used
in previous test). SO only
smbfs.o was changed - and I put this new one into
/lib/modules/2.4.18/kernel/fs/smbfs directory
I reboot teh computer and I do teh same commands after start:
linux:~ # mount -t smbfs -o username=xxx,password=xxx //comp017/d$ /mnt
linux:~ # lsmod
Module Size Used by Not tainted
nls_cp437 4384 1 (autoclean)
nls_iso8859-1 2880 1 (autoclean)
smbfs 30848 1 (autoclean)
serial 43968 0 (autoclean) (unused)
af_packet 11144 2 (autoclean)
ipt_TCPMSS 2368 1 (autoclean)
ipt_TOS 1024 22 (autoclean)
ipt_MASQUERADE 1216 2 (autoclean)
ipt_MARK 736 13 (autoclean)
ipt_LOG 3168 92 (autoclean)
ipt_state 608 169 (autoclean)
ip_nat_ftp 2944 0 (unused)
ip_conntrack_ftp 3200 0 (unused)
smc-ultra 5024 1 (autoclean)
ne 6432 1 (autoclean)
8390 5856 0 (autoclean) [smc-ultra ne]
isa-pnp 27816 0 (autoclean) [serial smc-ultra ne]
rtl8139 12672 1 (autoclean)
mii 1040 0 (autoclean) [rtl8139]
ipt_REJECT 2784 3 (autoclean)
iptable_mangle 2144 1 (autoclean)
iptable_nat 12756 2 (autoclean) [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 12652 3 (autoclean) [ipt_MASQUERADE ipt_state
ip_nat_ftp ip_conntrack_ftp
iptable_nat]
iptable_filter 1728 1 (autoclean)
ip_tables 10400 12 [ipt_TCPMSS ipt_TOS ipt_MASQUERADE
ipt_MARK ipt_LOG ipt_state
ipt_REJECT iptable_mangle iptable_nat iptable_filter]
linux:~ # modprobe -k smbfs
linux:~ # modprobe -s smbfs /* To get erro message via syslog !! */
linux:~ # cp -r /mnt/Eudora/attach* /DATA/Email/xxx/eudora &
linux:~ # cp: cannot stat `/mnt/Eudora/attach/ZA ZGOD': No such file or
directory
[1]+ Exit 1 cp -r /mnt/Eudora/attach*
/DATA/Email/xxx/eudora (wd: ~/cron)
(wd now: ~)
linux:~ #
And now everything goes OK.
So it is definetely in smbfs !!