[Pkg-samba-maint] Can't do more than one cifs mount

Peter Besenbruch prb at lava.net
Mon Jan 21 08:16:22 UTC 2008


Samba 3.0.28-2 cannot do more than one cifs mount at a time. The second mount 
will segfault and freeze the X server hard. I have two mounts, unfortunately, 
and it is a real pain to umount one before mounting the other. It doesn't 
matter which order they mount in; the second one segfaults. Here are the 
fstab entries:

//192.168.1.11/E /home/peter/mnt/SERVER/E cifs defaults,guest,sec=none,noperm   
0       0
//192.168.1.11/shuttle /mnt/SERVER/shuttle cifs defaults,guest,sec=none,noperm  
0       0

Here is the syslog output, beginning with the message given from the first, 
successful mount:

Jan 20 21:49:44 shuttle kernel:  CIFS VFS: Server requests plain text password 
but client support disabled
Jan 20 21:49:46 shuttle kernel: BUG: unable to handle kernel NULL pointer 
dereference at virtual address 00000000
Jan 20 21:49:46 shuttle kernel:  printing eip:
Jan 20 21:49:46 shuttle kernel: f9096183
Jan 20 21:49:46 shuttle kernel: *pde = 00000000
Jan 20 21:49:46 shuttle kernel: Oops: 0000 [#1]
Jan 20 21:49:46 shuttle kernel: SMP 
Jan 20 21:49:46 shuttle kernel: Modules linked in: i915 drm ppdev parport_pc 
lp parport video container button battery ac nls_iso8859_1 cifs efs isofs udf 
vboxdrv kqemu fuse freq_table tsdev snd_hda_intel snd_pcm_oss snd_mixer_oss 
snd_pcm snd_timer psmouse i2c_i801 serio_raw i2c_core iTCO_wdt snd soundcore 
snd_page_alloc evdev intel_agp agpgart pcspkr rtc ext3 jbd mbcache sd_mod 
ide_cd cdrom ata_piix ata_generic libata scsi_mod jmicron firewire_ohci 
firewire_core crc_itu_t generic ide_core ehci_hcd uhci_hcd usbcore e1000 
thermal processor fan
Jan 20 21:49:46 shuttle kernel: CPU:    0
Jan 20 21:49:46 shuttle kernel: EIP:    0060:[<f9096183>]    Not tainted VLI
Jan 20 21:49:46 shuttle kernel: EFLAGS: 00010212   (2.6.22-3-686 #1)
Jan 20 21:49:46 shuttle kernel: EIP is at cifs_find_tcp_session+0x77/0xc0 
[cifs]
Jan 20 21:49:46 shuttle kernel: eax: eb31fd00   ebx: 00000000   ecx: 0000001f   
edx: eb31fd7c
Jan 20 21:49:46 shuttle kernel: esi: dfa85a29   edi: 00000000   ebp: dfa859c0   
esp: eb31fca4
Jan 20 21:49:46 shuttle kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 
0068
Jan 20 21:49:46 shuttle kernel: Process mount.cifs (pid: 2879, ti=eb31e000 
task=dfbb0030 task.ti=eb31e000)
Jan 20 21:49:46 shuttle kernel: Stack: 00000000 eb31fd7c dfa859c0 00000002 
00000001 f90ad7b1 00000007 f9098161 
Jan 20 21:49:46 shuttle kernel:        eb31fd90 eb31fd44 00000013 db0c2c13 
dfa3c224 db0c2c13 eb3b6b80 f2c60200 
Jan 20 21:49:46 shuttle kernel:        000000b7 f7c564e4 c0178ae5 00000000 
00000000 00000000 dfffee80 eb35101e 
Jan 20 21:49:46 shuttle kernel: Call Trace:
Jan 20 21:49:46 shuttle kernel:  [<f9098161>] cifs_mount+0x1641/0x20ac [cifs]
Jan 20 21:49:46 shuttle kernel:  [<c0178ae5>] __d_lookup+0x96/0xd9
Jan 20 21:49:46 shuttle kernel:  [<c01cc934>] idr_get_new+0xa/0x26
Jan 20 21:49:46 shuttle kernel:  [<c017b93d>] get_filesystem+0xf/0x29
Jan 20 21:49:46 shuttle kernel:  [<f908c610>] cifs_get_sb+0xa2/0x18f [cifs]
Jan 20 21:49:46 shuttle kernel:  [<c017c8e3>] alloc_vfsmnt+0x8d/0xb4
Jan 20 21:49:46 shuttle kernel:  [<c016b8f0>] vfs_kern_mount+0x83/0xf6
Jan 20 21:49:46 shuttle kernel:  [<c016b9af>] do_kern_mount+0x37/0xc7
Jan 20 21:49:46 shuttle kernel:  [<c017d379>] do_mount+0x627/0x69a
Jan 20 21:49:46 shuttle kernel:  [<c014ee8b>] find_get_page+0x18/0x48
Jan 20 21:49:46 shuttle kernel:  [<c0151116>] filemap_nopage+0x184/0x295
Jan 20 21:49:46 shuttle kernel:  [<c015ade9>] __handle_mm_fault+0x305/0x955
Jan 20 21:49:46 shuttle kernel:  [<c015ae24>] __handle_mm_fault+0x340/0x955
Jan 20 21:49:46 shuttle kernel:  [<c011aeee>] do_page_fault+0x2d0/0x57e
Jan 20 21:49:46 shuttle kernel:  [<c02a51fa>] error_code+0x72/0x78
Jan 20 21:49:46 shuttle kernel:  [<c02a00d8>] atm_dev_register+0x26/0x1d4
Jan 20 21:49:46 shuttle kernel:  [<c017bed2>] copy_mount_options+0x90/0x109
Jan 20 21:49:46 shuttle kernel:  [<c017d463>] sys_mount+0x77/0xb3
Jan 20 21:49:46 shuttle kernel:  [<c0103d86>] syscall_call+0x7/0xb
Jan 20 21:49:46 shuttle kernel:  [<c02a0000>] atm_dev_ioctl+0x4b5/0x567
Jan 20 21:49:46 shuttle kernel:  =======================
Jan 20 21:49:46 shuttle kernel: Code: 00 74 44 8b 14 24 8d 46 3c b9 10 00 00 
00 e8 c3 8d 13 c7 85 c0 74 30 8b 44 24 20 b9 20 00 00 00 89 df 89 30 8d 75 68 
49 78 08 ac <ae> 75 08 84 c0 75 f5 31 c0 eb 04 19 c0 0c 01 85 c0 75 09 90 ff 
Jan 20 21:49:46 shuttle kernel: EIP: [<f9096183>] 
cifs_find_tcp_session+0x77/0xc0 [cifs] SS:ESP 0068:eb31fca4
Jan 20 21:50:33 shuttle kdm[2511]: X server for display :0 terminated 
unexpectedly

Samba was quite stable with smbfs. With smbfs remapped to cifs with version 
3.0.28-2, the troubles began.
-- 
Hawaiian Astronomical Society: http://www.hawastsoc.org
HAS Deepsky Atlas: http://www.hawastsoc.org/deepsky



More information about the Pkg-samba-maint mailing list