[Bug 787410] New: Concurrency problem when triggering many AutoFS mounts simultaneously
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c0 Summary: Concurrency problem when triggering many AutoFS mounts simultaneously Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 0 Platform: All OS/Version: openSUSE 12.2 Status: ASSIGNED Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: lchiquitto@suse.com ReportedBy: lchiquitto@suse.com QAContact: qa-bugs@suse.de Found By: Community User Blocker: --- The fact that AutoFS now probes the proximity of single servers exposed an interesting problem. One way to reproduced it is to setup a map with 10 or more direct mounts. These volumes must be hosted at the same NFS server. So lets say we have /autofs-race/dir{1,2,3,4...} and each volume has a file named 'file'. By triggering the mount of the 10 volumes simultaneously, you'll notice that some of them will fail to mount:
n43:~ # for i in $(seq 1 10); do stat /autofs-race/dir$i/file > /dev/null & done (.. shell prints 10 pids that are running in background ..) n43:~ # stat: cannot stat ‘/autofs-race/dir4/file’: No such file or directory stat: cannot stat ‘/autofs-race/dir10/file’: No such file or directory
[1] Done stat /autofs-race/dir$i/file > /dev/null [2] Done stat /autofs-race/dir$i/file > /dev/null [3] Done stat /autofs-race/dir$i/file > /dev/null [4] Exit 1 stat /autofs-race/dir$i/file > /dev/null [5] Done stat /autofs-race/dir$i/file > /dev/null of [6] Done stat /autofs-race/dir$i/file > /dev/null [7] Done stat /autofs-race/dir$i/file > /dev/null [8] Done stat /autofs-race/dir$i/file > /dev/null [9]- Done stat /autofs-race/dir$i/file > /dev/null [10]+ Exit 1 stat /autofs-race/dir$i/file > /dev/null
Here it failed to mount /autofs-race/dir4 and /autofs-race/dir10. The root cause of this problem is that AutoFS uses getprotobyname() (a non-reentrant function) in multiple threads without synchronization. There's a patch available already. This bug is just to document the problem and release updates to older releases of openSUSE when the time comes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c1 --- Comment #1 from Leonardo Chiquitto <lchiquitto@suse.com> 2012-11-06 21:28:15 UTC --- Created an attachment (id=512161) --> (http://bugzilla.novell.com/attachment.cgi?id=512161) autofs-5.0.7-use-protocol-id-instead-of-protoent.patch Tentative fix proposed upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |777714 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c2 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Version|12.3 Milestone 0 |12.3 Milestone 2 Resolution| |FIXED Target Milestone|--- |12.3 Beta 1 --- Comment #2 from Leonardo Chiquitto <lchiquitto@suse.com> 2013-01-21 16:12:18 UTC --- Patch was accepted upstream. I'll submit it to Factory later today. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:51683:moderat | |e -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c4 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:51683:moderat |maint:running:51683:moderat |e |e | |maint:released:sle11-sp2:52 | |101 --- Comment #4 from Swamp Workflow Management <swamp@suse.de> 2013-05-03 14:57:00 UTC --- Update released for: autofs, autofs-debuginfo, autofs-debugsource Products: SLE-DEBUGINFO 11-SP2 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP2 (i386, x86_64) SLE-SERVER 11-SP2 (i386, ia64, ppc64, s390x, x86_64) SLES4VMWARE 11-SP2 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=787410 https://bugzilla.novell.com/show_bug.cgi?id=787410#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:51683:moderat |maint:released:sle11-sp2:52 |e |101 |maint:released:sle11-sp2:52 | |101 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com