From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 753A4385840A; Mon, 27 Sep 2021 05:19:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 753A4385840A From: "pgowda.cve at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/28353] Race condition on __opensock Date: Mon, 27 Sep 2021 05:19:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pgowda.cve at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 05:19:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28353 --- Comment #1 from pgowda --- The following lines are present in socket.texi for {unsigned int} if_nametoindex (const char *@var{ifname}) 491 @c It opens a socket to use ioctl on the fd to get the index. 492 @c opensock may call socket and access multiple times until it finds a 493 @c socket family that works. The Linux implementation has a potential 494 @c concurrency issue WRT last_type and last_family not being updated 495 @c atomically, but it is harmless; the generic implementation, OTOH, 496 @c takes a lock, which makes all callers AS- and AC-Unsafe. However, the explanation has been commented and not displayed in HTML file. Had the information been present in HTML, it would be easier to debug and=20 synchronize multithreaded access on the caller side. Can the above explanation be uncommented to get it reflected in HTML? Thanks --=20 You are receiving this mail because: You are on the CC list for the bug.=