[PATCH v2] malloc: Fix list_lock/arena lock deadlock [BZ #19182]

Florian Weimer fweimer@redhat.com
Sun Dec 6 12:14:00 GMT 2015


On 11/03/2015 12:35 PM, Florian Weimer wrote:
> This is just a minimal change.  The fork handler lock acquisition has to
> go away anyway if we make fork async-signal-safe (bug 4737).

The attached version is slightly more elaborate.  It tries to preserve
the original lock order, but has a backup path in case the preferred
lock ordering is not possible.  It covers reused_arena as well, which
has a similar ordering violation.

Torvald, we need this patch for backporting, so a review of the
concurrency aspect would be extremely welcome. :)

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-malloc-Fix-list_lock-arena-lock-deadlock-BZ-19182.patch
Type: text/x-patch
Size: 2769 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151206/a15ee43d/attachment.bin>


More information about the Libc-alpha mailing list