[Bug 824046] New: glibc: blacklist code in bindresvport doesn't release lock, results in double-lock
https://bugzilla.novell.com/show_bug.cgi?id=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c0 Summary: glibc: blacklist code in bindresvport doesn't release lock, results in double-lock Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: aj@suse.com ReportedBy: jeffm@suse.com QAContact: qa-bugs@suse.de Found By: Development Blocker: --- Created an attachment (id=543388) --> (http://bugzilla.novell.com/attachment.cgi?id=543388) [PATCH] Updated glibc-2.3.90-bindresvport.blacklist.diff This issue was originally reported in bnc#799496, but I incorrectly diagnosed it as a bug in the linuxrc open-coded NFS routines. It turns out that the bindresvport() futex hang was the issue all along. The issue is that in glibc 2.17 (http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=f6da27e53695ad1cc0e2a9...) introduced a lock to make bindresvport() threadsafe. The blacklist code was altered to handle it, but the locking was only added at the beginning and end of the function and it returns from two other places. As a result, the lock wasn't released and when bindresvport takes the lock itself, it hangs due to the double locking condition. I have a fix already worked up. It also handles a race condition in the original patch where the blacklist_read variable could be set to 1 between the test and the lock acquisition, producing undesired results. I would have just issued a submit request with the fix but OBS seems to be unresponsive tonight. -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c1 --- Comment #1 from Jeff Mahoney <jeffm@suse.com> 2013-06-09 19:14:59 EDT --- BTW, I ran into this as a separate case from the other bug report when I updated my home server to 12.3 this afternoon. dhcpd was hanging on startup - removing "nis" from nsswitch.conf worked around it, but this is the right fix. -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|aj@suse.com |schwab@suse.com -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-06-10 11:00:40 CEST --- This is an autogenerated message for OBS integration: This bug (824046) was mentioned in https://build.opensuse.org/request/show/178385 Factory / glibc -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:2020:moderate -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c3 --- Comment #3 from Ludwig Nussel <lnussel@suse.com> 2013-09-19 15:48:15 CEST --- fixed? -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|obs:running:2020:moderate | -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c4 --- Comment #4 from Swamp Workflow Management <swamp@suse.de> 2013-09-30 16:06:01 UTC --- openSUSE-SU-2013:1510-1: An update that solves 6 vulnerabilities and has 5 fixes is now available. Category: security (moderate) Bug References: 779320,801246,805054,813121,813306,819383,819524,824046,830257,834594,839870 CVE References: CVE-2012-4412,CVE-2013-0242,CVE-2013-1914,CVE-2013-2207,CVE-2013-4237,CVE-2013-4332 Sources used: openSUSE 12.3 (src): glibc-2.17-4.7.1, glibc-testsuite-2.17-4.7.2, glibc-testsuite-2.17-4.7.3, glibc-utils-2.17-4.7.1 -- 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=824046 https://bugzilla.novell.com/show_bug.cgi?id=824046#c5 Andreas Schwab <schwab@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Andreas Schwab <schwab@suse.com> 2013-10-01 08:48:35 CEST --- Fixed. -- 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