public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13763] New: bindresvport() function is multithread-unsafe
@ 2012-02-27  8:53 penght at cn dot fujitsu.com
  2012-05-09  6:59 ` [Bug libc/13763] " penght at cn dot fujitsu.com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: penght at cn dot fujitsu.com @ 2012-02-27  8:53 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13763

             Bug #: 13763
           Summary: bindresvport() function is multithread-unsafe
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: penght@cn.fujitsu.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6250
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6250
The Patch can make bindresvport() function to multithread-safe

bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-26 14:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27  8:53 [Bug libc/13763] New: bindresvport() function is multithread-unsafe penght at cn dot fujitsu.com
2012-05-09  6:59 ` [Bug libc/13763] " penght at cn dot fujitsu.com
2012-09-19  2:03 ` penght at cn dot fujitsu.com
2012-09-19  2:06 ` penght at cn dot fujitsu.com
2012-10-31 15:07 ` carlos_odonell at mentor dot com
2012-11-19  6:58 ` carlos_odonell at mentor dot com
2014-06-26 14:22 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).