From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 281AA38582AF; Tue, 1 Nov 2022 17:01:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 281AA38582AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667322080; bh=+Yx/Dca/0evb4fovh0s/KrsXh1QUXU1625XTFTVyWYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=paoEMCD4Sodc1Hlo5HcQE50G5Kh5xC+wdgOakeiOvx2zT5Yw8bs3+gFkZRGVzvH2s Vcme3NseCZcEQk6PVkRrQLiFN65xcOdADrJrqj5aHg8jp0yQhQCUSspsE3rB8CtjOj pEydhu+3CUUZwewCCDiELbQxWIygSjPo74QeE4Uw= From: "fw at deneb dot enyo.de" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29740] Race condition between pthread_exit and fork Date: Tue, 01 Nov 2022 17:01:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw at deneb dot enyo.de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29740 --- Comment #5 from Florian Weimer --- I see. So it's probably the half-completed dlopen that confuses the subproc= ess. We do this after fork: /* Reset the lock the dynamic loader uses to protect its data. */ __rtld_lock_initialize (GL(dl_load_lock)); /* Reset the lock protecting dynamic TLS related data. */ __rtld_lock_initialize (GL(dl_load_tls_lock)); That's unfortunately not particularly safe. --=20 You are receiving this mail because: You are on the CC list for the bug.=