Ubuntu

11.04 beta fails to hibernate if CIFS shares mounted (worked in 10.10)

Reported by Tom Chiverton on 2011-04-05
This bug report is a duplicate of:  Bug #24330: CIFS mount blocks suspend/hibernate. Edit Remove
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned

Bug Description

kern.log says:
300 mBi, 2000 mBm)
Apr 5 23:21:30 wopr kernel: [ 3989.205932] PM: Marking nosave pages: 000000000009f000 - 0000000000100000
Apr 5 23:21:30 wopr kernel: [ 3989.205938] PM: Basic memory bitmaps created
Apr 5 23:21:50 wopr kernel: [ 3989.205940] PM: Syncing filesystems ... done.
Apr 5 23:21:50 wopr kernel: [ 3989.237553] Freezing user space processes ...
Apr 5 23:21:50 wopr kernel: [ 4009.252264] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
Apr 5 23:21:50 wopr kernel: [ 4009.252333] ksysguardd D 00000000 0 2588 2586 0x00800004
Apr 5 23:21:50 wopr kernel: [ 4009.252343] f620bdf4 00200086 f620bde4 00000000 00200246 00000000 f67be78c c183a8c0
Apr 5 23:21:50 wopr kernel: [ 4009.252358] a05cf0e4 000003a0 f67be788 c183a8c0 c183a8c0 f70068c0 f67be500 f67ca5e0
Apr 5 23:21:50 wopr kernel: [ 4009.252372] f620be14 ffffffa8 f620be0c fa7d1e47 00000001 00000048 00000010 f620bdc8
Apr 5 23:21:50 wopr kernel: [ 4009.252386] Call Trace:
Apr 5 23:21:50 wopr kernel: [ 4009.252410] [<fa7d1e47>] ? smb_sendv+0xe7/0x310 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252421] [<c102d8c8>] ? default_spin_lock_flags+0x8/0x10
Apr 5 23:21:50 wopr kernel: [ 4009.252431] [<c15099af>] ? _raw_spin_lock_irqsave+0x2f/0x50
Apr 5 23:21:50 wopr kernel: [ 4009.252440] [<c106d5e8>] ? prepare_to_wait+0x48/0x70
Apr 5 23:21:50 wopr kernel: [ 4009.252459] [<fa7d214f>] wait_for_response.clone.1+0x6f/0xb0 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252464] [<c106d380>] ? autoremove_wake_function+0x0/0x50
Apr 5 23:21:50 wopr kernel: [ 4009.252473] [<fa7d2dbd>] SendReceive+0x17d/0x370 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252479] [<fa7b5d6e>] ? smb_init+0x6e/0x90 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252487] [<fa7bc1ae>] CIFSSMBQFSPosixInfo+0xee/0x230 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252494] [<fa7b48e3>] cifs_statfs+0xd3/0x150 [cifs]
Apr 5 23:21:50 wopr kernel: [ 4009.252499] [<c1141468>] ? mntput+0x18/0x30
Apr 5 23:21:50 wopr kernel: [ 4009.252503] [<c112fefa>] ? path_put+0x1a/0x20
Apr 5 23:21:50 wopr kernel: [ 4009.252508] [<c114d4a5>] statfs_by_dentry+0x65/0x90
Apr 5 23:21:50 wopr kernel: [ 4009.252512] [<c114d4f2>] vfs_statfs+0x22/0xc0
Apr 5 23:21:50 wopr kernel: [ 4009.252515] [<c114d5b0>] do_statfs64+0x20/0x40
Apr 5 23:21:50 wopr kernel: [ 4009.252519] [<c114d7d0>] sys_statfs64+0x50/0x80
Apr 5 23:21:50 wopr kernel: [ 4009.252524] [<c1509c34>] syscall_call+0x7/0xb
Apr 5 23:21:50 wopr kernel: [ 4009.252528] [<c150007b>] ? print_cpu_info+0x11e/0x126
Apr 5 23:21:50 wopr kernel: [ 4009.252532] [<c1500000>] ? print_cpu_info+0xa3/0x126
Apr 5 23:21:50 wopr kernel: [ 4009.252563]
Apr 5 23:21:50 wopr kernel: [ 4009.252565] Restarting tasks ...

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-8-generic 2.6.38-8.40
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.38-8.40-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: falken 2610 F.... pulseaudio
 /dev/snd/pcmC0D0p: falken 2610 F...m pulseaudio
CRDA:
 country TW:
  (2402 - 2472 @ 40), (3, 27)
  (5270 - 5330 @ 40), (3, 17), DFS
  (5735 - 5815 @ 40), (3, 30)
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe9fc000 irq 46'
   Mixer name : 'SigmaTel STAC9228'
   Components : 'HDA:14f12c06,14f1000f,00100000 HDA:10951392,10280242,00100000 HDA:83847616,10280242,00100402'
   Controls : 31
   Simple ctrls : 19
Date: Tue Apr 5 23:26:48 2011
HibernationDevice: RESUME=UUID=a97d09a5-ff7d-4f3e-b320-86747eb1b2ca
MachineType: Dell Inc. Inspiron 1525
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: root=UUID=01aa6a10-1c91-4b24-9632-a45de910f911 ro quiet splash resume=/dev/sda5
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.49
SourcePackage: linux
UpgradeStatus: Upgraded to natty on 2011-04-05 (0 days ago)
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/falken/.asoundrc.asoundconf>
WpaSupplicantLog:

dmi.bios.date: 10/16/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A16
dmi.board.name: 0U990C
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA16:bd10/16/2008:svnDellInc.:pnInspiron1525:pvr:rvnDellInc.:rn0U990C:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Inspiron 1525
dmi.sys.vendor: Dell Inc.

As well as working on a stock 10.10, it was also fine under 10.10 with the .36 kernel I was trying to resolve some video issues.

The stack trace mentioned SMB and I do have some Samba shares mounted. On a whim I tried unmounting those, and then the hibernate goes fine. So something up in Samba....

Example line from my fstab:
//bookcase.house/mp3 /media/bookcase-mp3 cifs noexec,credentials=/home/falken/.cifsPassword,uid=falken,noauto 0 0

I have a script run by KDE at login that just runs:
sudo mount /media/bookcase-mp3

and a suitable sudoers line (in /etc/sudoers.d/falken-mount)
falken ALL=NOPASSWD: /bin/mount, /bin/umount

summary: - 11.04 beta fails to suspend (worked in 10.10)
+ 11.04 beta fails to suspend if CIFS shares mounted (worked in 10.10)
summary: - 11.04 beta fails to suspend if CIFS shares mounted (worked in 10.10)
+ 11.04 beta fails to hibernate if CIFS shares mounted (worked in 10.10)
Christophe Dumez (hydr0g3n) wrote :

I'm running Ubuntu Natty (up-to-date) and I experience exactly the same issue.
I have to unmount my cifs share before suspend otherwise I get:
[ 3026.159509] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
[ 3026.159542] ksysguardd D 8c443c58 0 1703 1701 0x00800004
[ 3026.159549] ee6bddf4 00200086 ee6bdde4 8c443c58 00200246 00000023 ee5b41ac c1877680
[ 3026.159559] 91088855 000002bb ee5b41a8 c1877680 c1877680 f7847680 ee5b3f20 f74d0000
[ 3026.159568] ee6bde14 ffffffa8 ee6bde0c fa222e47 00000001 00000048 00000010 ee6bddc8
[ 3026.159577] Call Trace:
[ 3026.159597] [<fa222e47>] ? smb_sendv+0xe7/0x310 [cifs]
[ 3026.159607] [<c1035908>] ? default_spin_lock_flags+0x8/0x10
[ 3026.159617] [<c15319df>] ? _raw_spin_lock_irqsave+0x2f/0x50
[ 3026.159626] [<c1076ed8>] ? prepare_to_wait+0x48/0x70
[ 3026.159636] [<fa22314f>] wait_for_response.clone.1+0x6f/0xb0 [cifs]
[ 3026.159638] [<c1076c70>] ? autoremove_wake_function+0x0/0x50
[ 3026.159644] [<fa223dbd>] SendReceive+0x17d/0x370 [cifs]
[ 3026.159647] [<fa206d6e>] ? smb_init+0x6e/0x90 [cifs]
[ 3026.159652] [<fa20d1ae>] CIFSSMBQFSPosixInfo+0xee/0x230 [cifs]
[ 3026.159656] [<fa2058e3>] cifs_statfs+0xd3/0x150 [cifs]
[ 3026.159661] [<c114cb58>] ? mntput+0x18/0x30
[ 3026.159664] [<c113b5ea>] ? path_put+0x1a/0x20
[ 3026.159667] [<c1158b95>] statfs_by_dentry+0x65/0x90
[ 3026.159669] [<c1158be2>] vfs_statfs+0x22/0xc0
[ 3026.159671] [<c1158ca0>] do_statfs64+0x20/0x40
[ 3026.159674] [<c1158ec0>] sys_statfs64+0x50/0x80
[ 3026.159677] [<c100ab5f>] sysenter_do_call+0x12/0x28

Here is the mount entry:
//192.168.1.2/encrypted/ on /home/chris/hydro type cifs (rw,mand,nosuid,nodev,user=chris)

It is mounted with "user" option so that a regular user can unmount it without sudo. Unfortunately, this does not help.
My cifs share uses authentication, I don't know if it matters.

The behavior is consistent, suspend fails every time if the cifs share is mounted. I'll be happy to provide additional information if you need.

This appears to be fixed for me now, after a huge torrent of updates this evening. I believe one of them was for smbclient.

Herton R. Krzesinski (herton) wrote :

Can you both confirm then this is not happening anymore with an updated system?

It's strange as I don't find relevant changes to samba or kernel lately which could explain, but if it doesn't happen anymore we could change this to fixed. I tried to reproduce the bug here too but didn't succeed.

Changed in linux (Ubuntu):
status: New → Incomplete

Works for me.

Christophe Dumez (hydr0g3n) wrote :

Fixed for me as well.

Christophe Dumez (hydr0g3n) wrote :
Download full text (3.2 KiB)

Scratch that. This just happened to me again (apparently, it does not happen EVERY time).

Here the the backtrace:
[37574.918677] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
[37574.918720] dolphin D f0fc8dd8 0 2282 1 0x00800004
[37574.918727] ed131d48 00200086 ed131d38 f0fc8dd8 00200246 ffffffdc f048ce4c c1877680
[37574.918735] 5b34265f 00002227 f048ce48 c1877680 c1877680 f7887680 f048cbc0 f74d3280
[37574.918742] ed131d68 ffffffa8 ed131d60 fee1ee47 00000001 0000004e 00000010 ed131d1c
[37574.918750] Call Trace:
[37574.918772] [<fee1ee47>] ? smb_sendv+0xe7/0x310 [cifs]
[37574.918780] [<c1035908>] ? default_spin_lock_flags+0x8/0x10
[37574.918787] [<c15319af>] ? _raw_spin_lock_irqsave+0x2f/0x50
[37574.918793] [<c1076ed8>] ? prepare_to_wait+0x48/0x70
[37574.918804] [<fee1f14f>] wait_for_response.clone.1+0x6f/0xb0 [cifs]
[37574.918806] [<c1076c70>] ? autoremove_wake_function+0x0/0x50
[37574.918812] [<fee1fdbd>] SendReceive+0x17d/0x370 [cifs]
[37574.918817] [<fee07732>] CIFSSMBUnixQPathInfo+0x122/0x280 [cifs]
[37574.918823] [<fee1a461>] cifs_get_inode_info_unix+0x71/0x190 [cifs]
[37574.918827] [<c113c6fd>] ? dget+0x2d/0x40
[37574.918829] [<c113c986>] ? follow_managed+0xb6/0xe0
[37574.918831] [<c113d3d5>] ? do_lookup+0xe5/0x260
[37574.918835] [<c114b449>] ? vfsmount_lock_local_unlock+0x19/0x20
[37574.918838] [<c114ca9d>] ? mntput_no_expire+0x2d/0xd0
[37574.918840] [<c114cb58>] ? mntput+0x18/0x30
[37574.918845] [<fee118d5>] ? build_path_from_dentry+0xc5/0x1e0 [cifs]
[37574.918849] [<fee118d5>] ? build_path_from_dentry+0xc5/0x1e0 [cifs]
[37574.918854] [<fee1197a>] ? build_path_from_dentry+0x16a/0x1e0 [cifs]
[37574.918856] [<c153180d>] ? _raw_spin_lock+0xd/0x10
[37574.918862] [<fee1cb08>] ? _GetXid+0x58/0x80 [cifs]
[37574.918867] [<fee1b881>] cifs_revalidate_dentry+0xd1/0x1c0 [cifs]
[37574.918871] [<c1287832>] ? copy_to_user+0x42/0x60
[37574.918876] [<fee1b9a3>] cifs_getattr+0x33/0xc0 [cifs]
[37574.918879] [<c1136822>] vfs_getattr+0x42/0x70
[37574.918884] [<fee1b970>] ? cifs_getattr+0x0/0xc0 [cifs]
[37574.918886] [<c11368bd>] vfs_fstatat+0x6d/0x90
[37574.918888] [<c1136900>] vfs_lstat+0x20/0x30
[37574.918890] [<c1136cd6>] sys_lstat64+0x16/0x30
[37574.918893] [<c100ab5f>] sysenter_do_call+0x12/0x28
[37574.918896] [<c1530000>] ? schedule_timeout+0x180/0x260
[37574.918903] kblankscrn.kss T 00040005 0 17203 17201 0x00800004
[37574.918906] ecaa9e8c 00200086 00000000 00040005 00004333 000003e8 f043742c c1877680
[37574.918909] bb239133 00002227 f0437428 c1877680 c1877680 f78c7680 f04371a0 f74d6500
[37574.918913] f69d4630 f69d463c 00000000 ecaa9e54 c1068ce2 00000013 f04371a0 f043752c
[37574.918916] Call Trace:
[37574.918920] [<c1068ce2>] ? __sigqueue_free+0x32/0x40
[37574.918922] [<c1069747>] ? recalc_sigpending+0x17/0x40
[37574.918924] [<c1069b18>] ? dequeue_signal+0xb8/0x190
[37574.918926] [<c106a7a2>] do_signal_stop+0xa2/0x1c0
[37574.918929] [<c106b661>] get_signal_to_deliver+0x101/0x360
[37574.918931] [<c100a4b1>] do_signal+0x61/0x120
[37574.918934] [<c113251c>] ? rw_verify_area+0x6c/0x130
[37574.918936] [<c1132abe>] ? vfs_read+0x14e/0x160
[37574.91...

Read more...

Changed in linux (Ubuntu):
status: Incomplete → Triaged
Changed in linux (Ubuntu):
importance: Undecided → Medium
Jeremy Foshee (jeremyfoshee) wrote :

natty has no proposed candidates ergo, this cannot be a regression-proposed bug. Removing the tag.

~JFo

tags: removed: regression-proposed
Andrew M. (ender-neo) wrote :

this isn't limited to "beta" - the released 11.04 has this problem too

Andrew M. (ender-neo) wrote :

my backtrace:
[32467.560058] Freezing of tasks failed after 20.01 seconds (1 tasks refusing to freeze, wq_busy=0):
[32467.560115] plasma-desktop D 0000000000000000 0 2065 1 0x00800004
[32467.560120] ffff88005c529958 0000000000000082 ffff88005c529fd8 ffff88005c528000
[32467.560123] 0000000000013d00 ffff8800649c3178 ffff88005c529fd8 0000000000013d00
[32467.560126] ffffffff81a0b020 ffff8800649c2dc0 ffff880061f40448 ffff88006447bab8
[32467.560130] Call Trace:
[32467.560149] [<ffffffffa016d731>] wait_for_response.clone.1+0x81/0xd0 [cifs]
[32467.560155] [<ffffffff81087f00>] ? autoremove_wake_function+0x0/0x40
[32467.560163] [<ffffffffa016e523>] SendReceive+0x1a3/0x3b0 [cifs]
[32467.560169] [<ffffffffa0153c79>] CIFSSMBUnixQPathInfo+0x139/0x2b0 [cifs]
[32467.560176] [<ffffffffa016853d>] cifs_get_inode_info_unix+0x7d/0x1a0 [cifs]
[32467.560180] [<ffffffff814ba2da>] ? sock_poll+0x1a/0x20
[32467.560184] [<ffffffff8117758e>] ? do_poll.clone.2+0x22e/0x290
[32467.560190] [<ffffffffa015f240>] ? build_path_from_dentry+0xf0/0x230 [cifs]
[32467.560196] [<ffffffffa015f2f7>] ? build_path_from_dentry+0x1a7/0x230 [cifs]
[32467.560203] [<ffffffffa0169a1a>] cifs_revalidate_dentry+0xfa/0x1e0 [cifs]
[32467.560209] [<ffffffffa015f102>] cifs_d_revalidate+0x22/0x70 [cifs]
[32467.560212] [<ffffffff8116f007>] do_revalidate+0x17/0x60
[32467.560215] [<ffffffff81171556>] do_lookup+0x236/0x2e0
[32467.560217] [<ffffffff8116eec3>] ? generic_permission+0x23/0xc0
[32467.560220] [<ffffffff81171766>] link_path_walk+0x166/0xc40
[32467.560223] [<ffffffff811770b0>] ? pollwake+0x0/0x60
[32467.560226] [<ffffffff8117253b>] do_path_lookup+0x5b/0x160
[32467.560229] [<ffffffff811728a7>] user_path_at+0x57/0xa0
[32467.560234] [<ffffffff81169599>] vfs_fstatat+0x39/0x70
[32467.560237] [<ffffffff8116960b>] vfs_stat+0x1b/0x20
[32467.560240] [<ffffffff8116984a>] sys_newstat+0x1a/0x40
[32467.560243] [<ffffffff81164fa7>] ? vfs_read+0x167/0x180
[32467.560245] [<ffffffff8116503c>] ? sys_read+0x7c/0x90
[32467.560249] [<ffffffff8100c002>] system_call_fastpath+0x16/0x1b

Christian Weiske (cweiske) wrote :

Today's 11.04 still has the problem:

[ 226.550326] gnome-panel D 0000000000000000 0 2683 2563 0x00800004
[ 226.550331] ffff8800a6547958 0000000000000086 ffff8800a6547fd8 ffff8800a6546000
[ 226.550334] 0000000000013d00 ffff88005bea1a98 ffff8800a6547fd8 0000000000013d00
[ 226.550338] ffff880091528000 ffff88005bea16e0 ffff8800a336bc48 ffff88008d791d78
[ 226.550341] Call Trace:
[ 226.550359] [<ffffffffa01ce7d1>] wait_for_response.clone.1+0x81/0xd0 [cifs]
[ 226.550365] [<ffffffff81087fb0>] ? autoremove_wake_function+0x0/0x40
[ 226.550372] [<ffffffffa01cf5c3>] SendReceive+0x1a3/0x3b0 [cifs]
[ 226.550379] [<ffffffffa01b4c79>] CIFSSMBUnixQPathInfo+0x139/0x2b0 [cifs]
[ 226.550386] [<ffffffffa01c95dd>] cifs_get_inode_info_unix+0x7d/0x1a0 [cifs]
[ 226.550390] [<ffffffff81192547>] ? unlock_buffer+0x17/0x20
[ 226.550396] [<ffffffffa01c02e0>] ? build_path_from_dentry+0xf0/0x230 [cifs]
[ 226.550403] [<ffffffffa01c0397>] ? build_path_from_dentry+0x1a7/0x230 [cifs]
[ 226.550410] [<ffffffffa01caaba>] cifs_revalidate_dentry+0xfa/0x1e0 [cifs]
[ 226.550416] [<ffffffffa01c01a2>] cifs_d_revalidate+0x22/0x70 [cifs]
[ 226.550420] [<ffffffff8116f0c7>] do_revalidate+0x17/0x60
[ 226.550423] [<ffffffff81171616>] do_lookup+0x236/0x2e0
[ 226.550427] [<ffffffff8116ef83>] ? generic_permission+0x23/0xc0
[ 226.550430] [<ffffffff81171826>] link_path_walk+0x166/0xc40
[ 226.550433] [<ffffffff811725fb>] do_path_lookup+0x5b/0x160
[ 226.550436] [<ffffffff81172967>] user_path_at+0x57/0xa0
[ 226.550440] [<ffffffff8118333f>] ? mntput+0x1f/0x30
[ 226.550445] [<ffffffff812ae314>] ? apparmor_inode_getattr+0x54/0x60
[ 226.550449] [<ffffffff81169398>] ? cp_new_stat+0xf8/0x110
[ 226.550453] [<ffffffff81169659>] vfs_fstatat+0x39/0x70
[ 226.550456] [<ffffffff811696ae>] vfs_lstat+0x1e/0x20
[ 226.550459] [<ffffffff8116994a>] sys_newlstat+0x1a/0x40
[ 226.550463] [<ffffffff8100c002>] system_call_fastpath+0x16/0x1b

Also, this is a common problem that comes again and again:
- 5.10: https://bugs.launchpad.net/linux/+bug/24330
- 8.10: https://bugs.launchpad.net/ubuntu/+bug/279043
- 9.10: https://bugs.launchpad.net/ubuntu/+bug/499342
- 11.04 beta: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/752012
- 11.04: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/784030

Christian Weiske (cweiske) wrote :

I narrowed the issue down to gnome-panel:
1. suspend and hibernate works when CIFS drives are mounted
2. suspend and hibernate do not work when a CIFS drive is mounted that is target of a nautilus bookmark. As soon as this drive is unmounted - and gnome-panel does not show the bookmark in the places menu anymore - suspend works.
3. When I remove the bookmarks to the folder on the CIFS drive, suspend does work.

I think that's a gnome-panel issue.

memartin (memartin) wrote :

I think there could be some deeper underlying problem with network mounts in general existing at hibernation/suspend time. I have the same issues with a NFS4 directory mounted permanently (via fstab at boot time). Hibernate used to wirk fine until I (re-) introduced that mount after a recent re-setup of Kubuntu Oneiric Beta 1 (so this also affects Oneiric).

memartin (memartin) wrote :

Some thoughts later I've come across the idea that not the NFS mount itself must necessarily be the problem, but that it is more likely to be the Folder View plasmoid that displays contents from this very mount on my desktop. The problematic outcome of course being the same ;-)

Andrew M. (ender-neo) wrote :

couple of things -
1. this problem persists in 11.10 release version
2. in 11.10, things play nice if I suspend with:
   sudo su
   echo 'mem' > /sys/power/state
3. bug 24330 is a much much older dup of this one.

Andrew M. (ender-neo) wrote :

network management app dosen't matter either -
happens with scripts, NetworkManager, and wicd

To post a comment you must log in.