Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377583 - net-fs/ncpfs-2.2.6-r2 access to novell share hangs
Summary: net-fs/ncpfs-2.2.6-r2 access to novell share hangs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-3
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 17:25 UTC by Juergen Rose
Modified: 2011-10-25 16:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2011-08-03 17:25:13 UTC
I tried to copy some files from a novell share to a local directory. I seems me that all files are copied, but nevertheless the copy command hangs and any other access to the novell shares are not possible:

root@moose:/root(128)# cp -a /mnt/v/RAID1/Workplace/uhligk/110710-Radtour/ ~rose/Txt/Pictures/Travelling/

^C^\^C^C^C^\^\^\^\^C


root@moose:/root(20)# ps -ef | grep cp | grep -v grep
root     16895  4729  0 Jul25 tty7     01:49:08 /usr/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
root     23498  3239  0 Aug02 pts/8    00:00:00 [cp]
rose     30817     1  0 Jul26 ?        00:02:29 /usr/libexec/cpufreq-applet

root@moose:/root(25)# ps -p 23498 ln
F   UID   PID  PPID PRI  NI    VSZ   RSS  WCHAN STAT TTY        TIME COMMAND
4     0 23498  3239  20   0      0     0 11d120 S+   pts/8      0:00 [cp]

root@moose:/root(26)# kill -9 23498
root@moose:/root(27)# ps -p 23498 ln
F   UID   PID  PPID PRI  NI    VSZ   RSS  WCHAN STAT TTY        TIME COMMAND
4     0 23498  3239  20   0      0     0 11d120 S+   pts/8      0:00 [cp]

So it is impossible to kill the copy command. Mount says:

root@moose:/root(12)# mount | grep ncpfs
ZELOS/ROSEJ.MBB.IBMT on /mnt/v type ncpfs (rw)

Umount of course does not work:

root@moose:/root(13)# umount /mnt/v
umount: /mnt/v: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))



root@moose:/root(20)# ps -ef | grep cp | grep -v grep
root     16895  4729  0 Jul25 tty7     01:49:08 /usr/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
root     23498  3239  0 Aug02 pts/8    00:00:00 [cp]
rose     30817     1  0 Jul26 ?        00:02:29 /usr/libexec/cpufreq-applet


'dmesg' says:

[840333.447356] test_9156[9624]: segfault at 0 ip 0000000000400651 sp 00007fffbc706930 error 4 in test_9156[400000+1000]
[917273.565149] test_4076[4605]: segfault at 0 ip 0000000000400651 sp 00007ffffc790bc0 error 4 in test_4076[400000+1000]
[920926.854774] plugin-containe[21837]: segfault at 0 ip           (null) sp 00007fffc9b4abd8 error 14 in plugin-container[400000+c000]
[920927.668753] plugin-containe[21839]: segfault at 0 ip           (null) sp 00007fff9e6616c8 error 14 in plugin-container[400000+c000]
[920928.468340] plugin-containe[21841]: segfault at 0 ip           (null) sp 00007fff43925868 error 14 in plugin-container[400000+c000]
[921293.914308] plugin-containe[21919]: segfault at 0 ip           (null) sp 00007fff7d0761d8 error 14 in plugin-container[400000+c000]
[921841.650626] test_23686[24133]: segfault at 0 ip 0000000000400651 sp 00007fffc5a97f10 error 4 in test_23686[400000+1000]
[922563.846569] test_26200[26651]: segfault at 0 ip 0000000000400651 sp 00007fffd21cfe50 error 4 in test_26200[400000+1000]
[929944.558905] test_15553[16021]: segfault at 0 ip 0000000000400651 sp 00007fff44e89fc0 error 4 in test_15553[400000+1000]
[941707.075759] fgfs[23802] general protection ip:9360e3 sp:7f81073bcb40 error:0 in fgfs[400000+764000]
[943440.523070] INFO: task ls:24238 blocked for more than 120 seconds.
[943440.523074] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[943440.523076] ls              D 0000000138342576  5024 24238  30942 0x00000004
[943440.523082]  ffff88022fbe9798 0000000000000082 0000000000000000 ffff88025ec8f3e0
[943440.523087]  0000000000000000 0000000000000000 00000000000108c0 00000000000108c0
[943440.523091]  00000000000108c0 00000000000108c0 ffff88023a3839f0 00000000000108c0
[943440.523095] Call Trace:
[943440.523103]  [<ffffffff814b4c6c>] __mutex_lock_common.clone.5+0x11c/0x17b
[943440.523107]  [<ffffffff814b4cd9>] __mutex_lock_slowpath+0xe/0x10
[943440.523111]  [<ffffffff814b4b3c>] mutex_lock+0x1e/0x32
[943440.523118]  [<ffffffffa011db46>] ncp_lock_server+0x18/0x3e [ncpfs]
[943440.523123]  [<ffffffffa011b7bb>] ncp_get_volume_root+0x25/0x182 [ncpfs]
[943440.523129]  [<ffffffffa011b956>] ncp_lookup_volume+0x3e/0xb9 [ncpfs]
[943440.523133]  [<ffffffffa0116239>] ncp_lookup_validate+0xd1/0x1a3 [ncpfs]
[943440.523139]  [<ffffffff810cd855>] ? find_get_page+0x44/0x6a
[943440.523143]  [<ffffffff8105225a>] ? need_resched+0x1e/0x28
[943440.523146]  [<ffffffff8105226d>] ? should_resched+0x9/0x29
[943440.523150]  [<ffffffff814b44b9>] ? _cond_resched+0x9/0x1d
[943440.523154]  [<ffffffff810cf1c5>] ? filemap_fault+0x1e2/0x338
[943440.523157]  [<ffffffff810cda5b>] ? unlock_page+0x25/0x29
[943440.523161]  [<ffffffff810d324a>] ? get_page_from_freelist+0x3ca/0x452
[943440.523165]  [<ffffffff814b5574>] ? _raw_spin_lock+0x9/0xb
[943440.523169]  [<ffffffff8110cfc4>] ? dget+0x1a/0x27
[943440.523173]  [<ffffffff8111b173>] ? mntget+0x1b/0x21
[943440.523176]  [<ffffffff8111b173>] ? mntget+0x1b/0x21
[943440.523179]  [<ffffffff8110d15b>] ? unlazy_walk+0x10e/0x141
[943440.523183]  [<ffffffff8110ee96>] walk_component+0x243/0x3ca
[943440.523186]  [<ffffffff8110f911>] link_path_walk+0x194/0x436
[943440.523189]  [<ffffffff8110de57>] ? path_init+0x10d/0x2d3
[943440.523193]  [<ffffffff8110fcb9>] path_lookupat+0x54/0x308
[943440.523197]  [<ffffffff81245d15>] ? __strncpy_from_user+0x1a/0x49
[943440.523201]  [<ffffffff8110ff92>] do_path_lookup+0x25/0x94
[943440.523204]  [<ffffffff8111039f>] user_path_at+0x51/0x8e
[943440.523209]  [<ffffffff814b8400>] ? do_page_fault+0x2f1/0x330
[943440.523213]  [<ffffffff81108534>] vfs_fstatat+0x44/0x6f
[943440.523216]  [<ffffffff814b44b9>] ? _cond_resched+0x9/0x1d
[943440.523219]  [<ffffffff81108578>] vfs_lstat+0x19/0x1b
[943440.523222]  [<ffffffff811088fe>] sys_newlstat+0x1a/0x34
[943440.523226]  [<ffffffff810715fb>] ? sys_rt_sigaction+0x64/0xa0
[943440.523230]  [<ffffffff814b5b1f>] ? page_fault+0x1f/0x30
[943440.523234]  [<ffffffff814bb67b>] system_call_fastpath+0x16/0x1b
[943560.523072] INFO: task ls:24238 blocked for more than 120 seconds.
[943560.523075] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[943560.523077] ls              D 0000000138342576  5024 24238  30942 0x00000004
...


I suppose, if I reboot the computer, the reboot will also hang, because it can't unmount the ncpfs share.
Comment 1 Mike Pagano gentoo-dev 2011-09-02 22:48:19 UTC
I saw a bug report about a seg fault with ncpfs that was fixed in the 3 series linux kernel.

Can you test with the latest gentoo-sources, which is gentoo-sources-3.0.4 as of this writing.
Comment 2 Juergen Rose 2011-09-09 10:07:14 UTC
I tested once more with 3.0.4-gentoo. It seems that it works now:

root@moose:/root(7)# uname -a
Linux moose 3.0.4-gentoo #1 SMP Fri Sep 2 17:49:29 CEST 2011 x86_64 Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz GenuineIntel GNU/Linux
root@moose:/root(8)# cp -a /mnt/v/RAID1/Workplace/uhligk/110710-Radtour/ ~rose/
root@moose:/root(9)# umount /mnt/v
root@moose:/root(10)# diff -r ~rose/110710-Radtour/  ~rose/Txt/Pictures/Travelling/110710-Radtour/
Binary files /home/rose/110710-Radtour/Thumbs.db and /home/rose/Txt/Pictures/Travelling/110710-Radtour/Thumbs.db differ
root@moose:/root(11)# ll /home/rose/110710-Radtour/Thumbs.db /home/rose/Txt/Pictures/Travelling/110710-Radtour/Thumbs.db
-rw-rw---- 1 root nwaccess 117760 Aug 15 15:30 /home/rose/110710-Radtour/Thumbs.db
-rw------- 1 rose users     65536 Aug  2 16:45 /home/rose/Txt/Pictures/Travelling/110710-Radtour/Thumbs.db
Comment 3 Mike Pagano gentoo-dev 2011-10-25 16:52:37 UTC
Closing as we now have a amd64 stabled version greater than 3.0.4 which you reported as working.