From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19519 invoked by alias); 8 Aug 2019 20:20:07 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 19501 invoked by uid 9943); 8 Aug 2019 20:20:07 -0000 Date: Thu, 08 Aug 2019 20:20:00 -0000 Message-ID: <20190808202007.19500.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] Deleted branch azanella/bz24595 X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/bz24595 X-Git-Oldrev: 88820cb4c34f77805be822c5f090e9f1b75e1df4 X-Git-Newrev: 0000000000000000000000000000000000000000 X-SW-Source: 2019-q3/txt/msg00202.txt.bz2 The branch 'azanella/bz24595' was deleted. It previously pointed to: 88820cb... nptl: Fix deadlock on atfork handler which calls dlclose (B Diff: !!! WARNING: THE FOLLOWING COMMITS ARE NO LONGER ACCESSIBLE (LOST): ------------------------------------------------------------------- 88820cb... nptl: Fix deadlock on atfork handler which calls dlclose (B commit 88820cb4c34f77805be822c5f090e9f1b75e1df4 Author: Adhemerval Zanella Date: Fri Jul 12 14:33:37 2019 -0300 nptl: Fix deadlock on atfork handler which calls dlclose (BZ#24595) Some real-world cases rely upon that atfork handlers can call functions that might change the atfork handlers, such as dlclose. Since 27761a10 (Refactor atfork handlers), all internal atfork handlers access is protected with a simple lock, not allowing reentrancy. This leads to deadlocks for the aforementioned scenario. Although this specific usage is far from portable (as comment #2 in the bug report), glibc did allow it. This patch fixes by using a double-linked lists along with a lock release while calling the atfork handlers.