[Bug 578587] Re: umount.cifs does not work on logout with libpam-mount

Michael Cook mcook2 at mts.net
Sat Jun 19 04:08:59 UTC 2010


1) On Ubuntu 10.4

usame -a
Linux cara 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux

smbstatus
Samba version is 3.4.7

2) Target system is OSX 10.4.11 with Samba version 3.0.10

3) Run these commands:

sudo mount -t cifs -o username=mcook,password=Rq77256A //192.168.2.106/public /mnt/mona/public
sudo mount -t cifs -o username=mcook,password=Rq77256A //192.168.2.106/public /mnt/mona/public
sudo mount -t cifs
 -o username=mcook,password=Rq77256A //192.168.2.106/WetMice /mnt/mona/WetMice

4) Shares are readable/writable fro Ubuntu to OSX as expected.

5) At this point mount and df commands on Ubuntu show the following ...

mount 
/dev/sdb5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/mcook/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=mcook)
/dev/sda5 on /media/50e9340a-6127-467a-9c7a-c764037c417e type ext3 (rw,nosuid,nodev,uhelper=udisks)
//192.168.2.106/public on /mnt/mona/public type cifs (rw,username=mcook,password=Rq77256A)
//192.168.2.106/WetMice on /mnt/mona/WetMice type cifs (rw,username=mcook,password=Rq77256A)
//192.168.2.106/mcook on /mnt/mona/mcook type cifs (rw,username=mcook,password=Rq77256A,uid=1000,gid=1000,file_mode=0640,dir_mode=0750,iocharset=utf8)

df -k -F cifs shows ..

mcook at cara:~$ df -k -F cifs
Filesystem           1K-blocks      Used Available Use% Mounted on
//192.168.2.106/public
                     156155904 105848832  50307072  68% /mnt/mona/public
//192.168.2.106/public
                     156155904 105848832  50307072  68% /mnt/mona/public
//192.168.2.106/WetMice
                      77392904   3173308  70288256   5% /mnt/mona/WetMice

6) Try to umount any one of these three shares.

7) The command hangs and syslog shows

Jun 18 18:23:13 cara kernel: [  494.737792] Slow work thread pool: Ready
Jun 18 18:23:13 cara kernel: [  494.750875]  CIFS VFS: cifs_mount failed w/return code = -22
Jun 18 18:23:31 cara kernel: [  512.897365]  CIFS VFS: cifs_mount failed w/return code = -22
Jun 18 18:23:59 cara kernel: [  541.267717]  CIFS VFS: Send error in SETFSUnixInfo = -5
Jun 18 18:23:59 cara kernel: [  541.267725]  CIFS VFS: Negotiating Unix capabilities with the server failed.  Consider mounting with the Unix Extensions
Jun 18 18:23:59 cara kernel: [  541.267729] disabled, if problems are found, by specifying the nounix mount option.
Jun 18 18:24:43 cara kernel: [  585.381653]  CIFS VFS: Send error in SETFSUnixInfo = -5
Jun 18 18:24:43 cara kernel: [  585.381662]  CIFS VFS: Negotiating Unix capabilities with the server failed.  Consider mounting with the Unix Extensions
Jun 18 18:24:43 cara kernel: [  585.381666] disabled, if problems are found, by specifying the nounix mount option.
Jun 18 18:25:11 cara kernel: [  612.829502]  CIFS VFS: Send error in SETFSUnixInfo = -5
Jun 18 18:25:11 cara kernel: [  612.829511]  CIFS VFS: Negotiating Unix capabilities with the server failed.  Consider mounting with the Unix Extensions
Jun 18 18:25:11 cara kernel: [  612.829515] disabled, if problems are found, by specifying the nounix mount option.
Jun 18 18:31:35 cara kernel: [  996.617078]  CIFS VFS: cifs_mount failed w/return code = -22
Jun 18 18:32:00 cara kernel: [ 1021.677713]  CIFS VFS: Send error in SETFSUnixInfo = -5
Jun 18 18:32:00 cara kernel: [ 1021.677723]  CIFS VFS: Negotiating Unix capabilities with the server failed.  Consider mounting with the Unix Extensions
Jun 18 18:32:00 cara kernel: [ 1021.677727] disabled, if problems are found, by specifying the nounix mount option.
Jun 18 18:34:45 cara kernel: [ 1187.204235]  CIFS VFS: strtoUCS: char2uni of -16 returned -22
Jun 18 18:34:45 cara kernel: [ 1187.204243]  CIFS VFS: strtoUCS: char2uni of -109 returned -22
Jun 18 18:41:38 cara init: smbd main process ended, respawning
Jun 18 18:41:38 cara smbd[1984]: [2010/06/18 18:41:38,  0] smbd/server.c:1115(main)
Jun 18 18:41:38 cara smbd[1984]:   standard input is not a socket, assuming -D option
Jun 18 18:41:44 cara nmbd[1279]: [2010/06/18 18:41:44,  0] nmbd/nmbd.c:71(terminate)
Jun 18 18:41:44 cara nmbd[1279]:   Got SIGTERM: going down...
Jun 18 18:41:44 cara init: nmbd main process ended, respawning
Jun 18 18:44:06 cara kernel: [ 1748.201917] BUG: Dentry e1c892a8{i=2,n=/} still in use (2) [unmount of cifs cifs]
Jun 18 18:44:06 cara kernel: [ 1748.201952] ------------[ cut here ]------------
Jun 18 18:44:06 cara kernel: [ 1748.201958] kernel BUG at /build/buildd/linux-2.6.32/fs/dcache.c:670!
Jun 18 18:44:06 cara kernel: [ 1748.201963] invalid opcode: 0000 [#1] SMP 
Jun 18 18:44:06 cara kernel: [ 1748.201970] last sysfs file: /sys/devices/pci0000:00/0000:00:0b.0/0000:03:00.0/irq
Jun 18 18:44:06 cara kernel: [ 1748.201975] Modules linked in: nls_cp437 nls_utf8 cifs binfmt_misc snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm fbcon snd_seq_dummy snd_seq_oss snd_seq_midi tileblit snd_rawmidi snd_seq_midi_event font led_class bitblit snd_seq nvidia(P) softcursor agpgart vga16fb snd_timer snd_seq_device i2c_nforce2 psmouse k8temp snd vgastate serio_raw soundcore snd_page_alloc ppdev parport_pc lp parport hid_apple usbhid hid usb_storage ohci1394 pata_amd sata_nv sky2 ieee1394
Jun 18 18:44:06 cara kernel: [ 1748.202049] 
Jun 18 18:44:06 cara kernel: [ 1748.202057] Pid: 2015, comm: umount Tainted: P           (2.6.32-22-generic #36-Ubuntu) Aspire T180
Jun 18 18:44:06 cara kernel: [ 1748.202064] EIP: 0060:[<c0219ea9>] EFLAGS: 00210286 CPU: 1
Jun 18 18:44:06 cara kernel: [ 1748.202076] EIP is at shrink_dcache_for_umount_subtree+0x249/0x260
Jun 18 18:44:06 cara kernel: [ 1748.202082] EAX: 0000005b EBX: e1c892a8 ECX: ffffffa8 EDX: 00000000
Jun 18 18:44:06 cara kernel: [ 1748.202088] ESI: 00000002 EDI: f8de37a8 EBP: dfc11f28 ESP: dfc11efc
Jun 18 18:44:06 cara kernel: [ 1748.202093]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Jun 18 18:44:06 cara kernel: [ 1748.202099] Process umount (pid: 2015, ti=dfc10000 task=f6b659b0 task.ti=dfc10000)
Jun 18 18:44:06 cara kernel: [ 1748.202104] Stack:
Jun 18 18:44:06 cara kernel: [ 1748.202107]  c06ce160 e1c892a8 00000002 e1c89304 00000002 f8de37a8 dfc3ed64 e1c89304
Jun 18 18:44:06 cara kernel: [ 1748.202120] <0> dfc3ec00 f8de0580 c0248b80 dfc11f34 c0219eed dfc3ec00 dfc11f4c c0209c70
Jun 18 18:44:06 cara kernel: [ 1748.202133] <0> dfc11f44 c058b6fd 00000018 f8df2e60 dfc11f58 c0209d91 dfc3ec00 dfc11f6c
Jun 18 18:44:06 cara kernel: [ 1748.202148] Call Trace:
Jun 18 18:44:06 cara kernel: [ 1748.202159]  [<c0248b80>] ? vfs_quota_off+0x0/0x20
Jun 18 18:44:06 cara kernel: [ 1748.202167]  [<c0219eed>] ? shrink_dcache_for_umount+0x2d/0x50
Jun 18 18:44:06 cara kernel: [ 1748.202176]  [<c0209c70>] ? generic_shutdown_super+0x20/0xe0
Jun 18 18:44:06 cara kernel: [ 1748.202185]  [<c058b6fd>] ? _spin_lock+0xd/0x10
Jun 18 18:44:06 cara kernel: [ 1748.202192]  [<c0209d91>] ? kill_anon_super+0x11/0x50
Jun 18 18:44:06 cara kernel: [ 1748.202199]  [<c020ab74>] ? deactivate_super+0x64/0x90
Jun 18 18:44:06 cara kernel: [ 1748.202206]  [<c022009f>] ? mntput_no_expire+0x8f/0xe0
Jun 18 18:44:06 cara kernel: [ 1748.202214]  [<c02206b7>] ? sys_umount+0x47/0xa0
Jun 18 18:44:06 cara kernel: [ 1748.202220]  [<c022072e>] ? sys_oldumount+0x1e/0x20
Jun 18 18:44:06 cara kernel: [ 1748.202228]  [<c01033ec>] ? syscall_call+0x7/0xb
Jun 18 18:44:06 cara kernel: [ 1748.202232] Code: 64 01 00 00 89 54 24 18 8b 55 f0 89 7c 24 14 89 74 24 10 89 5c 24 04 89 54 24 0c 89 44 24 08 c7 04 24 60 e1 6c c0 e8 cc f0 36 00 <0f> 0b eb fe 0f 0b eb fe eb 0d 90 90 90 90 90 90 90 90 90 90 90 
Jun 18 18:44:06 cara kernel: [ 1748.202304] EIP: [<c0219ea9>] shrink_dcache_for_umount_subtree+0x249/0x260 SS:ESP 0068:dfc11efc
Jun 18 18:44:06 cara kernel: [ 1748.202318] ---[ end trace e2f0007c9f58cced ]---
  
8) System is hung and I have to reboot.

9) The problem is reproducable on this test system.

10) Running apport-collect -p linux 578587 as suggested  above,

Please let me know if you need me to try anything, provide more info,
etc.

-- 
umount.cifs does not work on logout with libpam-mount
https://bugs.launchpad.net/bugs/578587
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list