[Pkg-samba-maint] Bug#571186: smbfs: strange things happen if module removed from kernel
Andrew O. Shadoura
bugzilla at tut.by
Wed Feb 24 07:11:30 UTC 2010
Package: smbfs
Version: 2:3.4.0-3
Severity: normal
Hello.
Not sure if it is really a bug, but anyway.
Imagine first, we have CIFS share mounted:
//DOOMSTAR/kafedra on /home/andrew/smb4k/doomstar/kafedra type cifs (rw,mand,nosuid,nodev,user=andrew)
Next, network link goes down forever:
Feb 24 08:49:06 ileemo ifplugd(eth0)[1690]: Link beat lost.
Feb 24 08:49:07 ileemo kernel: [ 286.816424] e100: eth0: e100_watchdog: link down
Feb 24 08:49:16 ileemo ifplugd(eth0)[1690]: Executing '/etc/ifplugd/ifplugd.action eth0 down'.
Unmounting this mount is a very time-consuming thing, so one may try to do
# rmmod cifs -f
This leads to:
Feb 24 08:49:24 ileemo kernel: [ 303.305440] slab error in kmem_cache_destroy(): cache `cifs_inode_cache': Can't free all objects
Feb 24 08:49:24 ileemo kernel: [ 303.305462] Pid: 2961, comm: rmmod Tainted: G R 2.6.26-1-686 #1
Feb 24 08:49:24 ileemo kernel: [ 303.305510] [<c017174e>] kmem_cache_destroy+0x6e/0xb8
Feb 24 08:49:24 ileemo kernel: [ 303.305567] [<f0e1fe91>] exit_cifs+0x2d/0xa8 [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.305595] [<c013fd0e>] sys_delete_module+0x194/0x1de
Feb 24 08:49:24 ileemo kernel: [ 303.305612] [<c0186900>] graft_tree+0x77/0xc6
Feb 24 08:49:24 ileemo kernel: [ 303.305655] [<c0115b4f>] do_page_fault+0x29b/0x5b8
Feb 24 08:49:24 ileemo kernel: [ 303.305741] [<c0103853>] sysenter_past_esp+0x78/0xb1
Feb 24 08:49:24 ileemo kernel: [ 303.305804] [<c02b0000>] acpi_pci_root_add+0x101/0x296
Feb 24 08:49:24 ileemo kernel: [ 303.305860] =======================
Feb 24 08:49:24 ileemo kernel: [ 303.305870] slab error in kmem_cache_destroy(): cache `cifs_mpx_ids': Can't free all objects
Feb 24 08:49:24 ileemo kernel: [ 303.305879] Pid: 2961, comm: rmmod Tainted: G R 2.6.26-1-686 #1
Feb 24 08:49:24 ileemo kernel: [ 303.305896] [<c017174e>] kmem_cache_destroy+0x6e/0xb8
Feb 24 08:49:24 ileemo kernel: [ 303.305941] [<f0e020e7>] cifs_destroy_mids+0x14/0x1e [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.305965] [<f0e1fe96>] exit_cifs+0x32/0xa8 [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.305989] [<c013fd0e>] sys_delete_module+0x194/0x1de
Feb 24 08:49:24 ileemo kernel: [ 303.306003] [<c0186900>] graft_tree+0x77/0xc6
Feb 24 08:49:24 ileemo kernel: [ 303.306046] [<c0115b4f>] do_page_fault+0x29b/0x5b8
Feb 24 08:49:24 ileemo kernel: [ 303.306129] [<c0103853>] sysenter_past_esp+0x78/0xb1
Feb 24 08:49:24 ileemo kernel: [ 303.306189] [<c02b0000>] acpi_pci_root_add+0x101/0x296
Feb 24 08:49:24 ileemo kernel: [ 303.306243] =======================
Feb 24 08:49:24 ileemo kernel: [ 303.306261] slab error in kmem_cache_destroy(): cache `cifs_request': Can't free all objects
Feb 24 08:49:24 ileemo kernel: [ 303.306269] Pid: 2961, comm: rmmod Tainted: G R 2.6.26-1-686 #1
Feb 24 08:49:24 ileemo kernel: [ 303.306286] [<c017174e>] kmem_cache_destroy+0x6e/0xb8
Feb 24 08:49:24 ileemo kernel: [ 303.306331] [<f0e02105>] cifs_destroy_request_bufs+0x14/0x28 [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.306353] [<f0e1fe9b>] exit_cifs+0x37/0xa8 [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.306376] [<c013fd0e>] sys_delete_module+0x194/0x1de
Feb 24 08:49:24 ileemo kernel: [ 303.306391] [<c0186900>] graft_tree+0x77/0xc6
Feb 24 08:49:24 ileemo kernel: [ 303.306432] [<c0115b4f>] do_page_fault+0x29b/0x5b8
Feb 24 08:49:24 ileemo kernel: [ 303.306515] [<c0103853>] sysenter_past_esp+0x78/0xb1
Feb 24 08:49:24 ileemo kernel: [ 303.306575] [<c02b0000>] acpi_pci_root_add+0x101/0x296
Feb 24 08:49:24 ileemo kernel: [ 303.306628] =======================
Feb 24 08:49:24 ileemo kernel: [ 303.306644] slab error in kmem_cache_destroy(): cache `cifs_small_rq': Can't free all objects
Feb 24 08:49:24 ileemo kernel: [ 303.306652] Pid: 2961, comm: rmmod Tainted: G R 2.6.26-1-686 #1
Feb 24 08:49:24 ileemo kernel: [ 303.306669] [<c017174e>] kmem_cache_destroy+0x6e/0xb8
Feb 24 08:49:24 ileemo kernel: [ 303.306714] [<f0e1fe9b>] exit_cifs+0x37/0xa8 [cifs]
Feb 24 08:49:24 ileemo kernel: [ 303.306738] [<c013fd0e>] sys_delete_module+0x194/0x1de
Feb 24 08:49:24 ileemo kernel: [ 303.306752] [<c0186900>] graft_tree+0x77/0xc6
Feb 24 08:49:24 ileemo kernel: [ 303.306794] [<c0115b4f>] do_page_fault+0x29b/0x5b8
Feb 24 08:49:24 ileemo kernel: [ 303.306876] [<c0103853>] sysenter_past_esp+0x78/0xb1
Feb 24 08:49:24 ileemo kernel: [ 303.306935] [<c02b0000>] acpi_pci_root_add+0x101/0x296
Feb 24 08:49:24 ileemo kernel: [ 303.306988] =======================
Feb 24 08:49:24 ileemo kernel: [ 303.307067] CIFS VFS: server not responding
Feb 24 08:49:24 ileemo kernel: [ 303.307075] CIFS VFS: No response for cmd 50 mid 17
Feb 24 08:49:24 ileemo kernel: [ 303.307094] CIFS VFS: No response for cmd 50 mid 18
Next, any umount for this mount will fail:
# umount /home/andrew/smb4k/doomstar/kafedra
Segmentation fault.
Moreover, s2disk being called causes system to hang.
I understand that rmmod -f is not a good way of dealing with kernel modules,
but anyway, this is not quite what I expected.
--
WBR, Andrew
-- System Information:
Debian Release: 5.0
APT prefers sid
APT policy: (500, 'sid'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages smbfs depends on:
ii libc6 2.10.1-7 GNU C Library: Shared libraries
ii libcap2 2.11-2 support for getting/setting POSIX.
ii libcomerr2 1.41.8-2 common error description library
ii libgssapi-krb5-2 1.7dfsg~beta3-1 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.7dfsg~beta3-1 MIT Kerberos runtime libraries - C
ii libkeyutils1 1.2-9 Linux Key Management Utilities (li
ii libkrb5-3 1.7dfsg~beta3-1 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.17-1 OpenLDAP libraries
ii libtalloc1 1.3.1-2 hierarchical pool based memory all
ii libwbclient0 2:3.4.0-1 Samba winbind client library
ii netbase 4.34 Basic TCP/IP networking system
ii samba-common 2:3.4.0-3 common files used by both the Samb
ii zlib1g 1:1.2.3.3.dfsg-14 compression library - runtime
smbfs recommends no packages.
Versions of packages smbfs suggests:
ii smbclient 2:3.4.0-3 command-line SMB/CIFS clients for
-- no debconf information
More information about the Pkg-samba-maint
mailing list