From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: ldso pthread finalization
Date: Sun, 26 Feb 2017 16:33:12 -0500 [thread overview]
Message-ID: <20170226213312.GA1520@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAO2+NUCb+FeqZGhX2-C3782anvbagETVDoaGaR2GaAu_k0sE9w@mail.gmail.com>
On Sun, Feb 26, 2017 at 12:48:07PM +0300, Леонид Юрьев wrote:
> Hi,
>
> In glibc there are a couple of problems. I do not know whether they
> are relevant for Musl. However, I think should pay attention.
>
> So, please take in accound two glibc bugs:
>
> 1) pthread_key_delete() race with thread finalization.
>
> A race condition could occur between the pthread_key_delete() and the
> __nptl_deallocate_tsd().
I consider deletion of a key for which a value is set to be a type of
use-after-free bug and thereby to have undefined behavior. POSIX does
not seem to specify a behavior for it, and it does not seem possible
to specify something consistent.
> 2) pthread_key_create() destructors and segfault after a DSO unloading.
musl does not unload DSOs, so this one is not relevant to musl.
Rich
prev parent reply other threads:[~2017-02-26 21:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-26 9:48 Леонид Юрьев
2017-02-26 11:41 ` Szabolcs Nagy
2017-02-26 21:33 ` Rich Felker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170226213312.GA1520@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).