mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Re: [PATCH v9 0/13] implement dlmem() function (fwd)
@ 2023-04-05 11:54 Rich Felker
  2023-04-05 12:13 ` Florian Weimer
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Felker @ 2023-04-05 11:54 UTC (permalink / raw)
  To: musl; +Cc: Florian Weimer

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

Well this is disturbing. We probably need to fix gcc here (and a lot
of code in the wild may be broken) because musl has no such locking
where it doesn't belong.

[-- Attachment #2: Type: message/rfc822, Size: 3384 bytes --]

From: Florian Weimer <fweimer@redhat.com>
To: Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org>
Cc: stsp <stsp2@yandex.ru>,  Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>,  janderson@rice.edu,  Carlos O'Donell <carlos@redhat.com>,  Rich Felker <dalias@libc.org>,  Szabolcs Nagy <szabolcs.nagy@arm.com>
Subject: Re: [PATCH v9 0/13] implement dlmem() function
Date: Wed, 05 Apr 2023 11:31:53 +0200
Message-ID: <87fs9en08m.fsf@oldenburg.str.redhat.com>

* Szabolcs Nagy via Libc-alpha:

> The 04/05/2023 12:29, stsp wrote:
>> - dl_iterate_phdr() seems to be calling the user
>>   callback under dl_load_write_lock lock.
>
> this is a known bug.

It's also not something we can fix because the libgcc unwinder has code
on it that relies on this implicit loader lock to protect its internal
data structures.  The libgcc unwinder can be statically linked, so we
can't remove the locking without adding a new symbol version.

I suspect other uses of dl_iterate_phdr are similar.

Thanks,
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-05 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 11:54 [musl] Re: [PATCH v9 0/13] implement dlmem() function (fwd) Rich Felker
2023-04-05 12:13 ` Florian Weimer
2023-04-05 12:20   ` Rich Felker
2023-04-05 12:25     ` Florian Weimer

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).