mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Cc: Florian Weimer <fweimer@redhat.com>
Subject: [musl] Re: [PATCH v9 0/13] implement dlmem() function (fwd)
Date: Wed, 5 Apr 2023 07:54:46 -0400	[thread overview]
Message-ID: <20230405115445.GG3298@brightrain.aerifal.cx> (raw)

[-- 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

             reply	other threads:[~2023-04-05 11:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05 11:54 Rich Felker [this message]
2023-04-05 12:13 ` Florian Weimer
2023-04-05 12:20   ` Rich Felker
2023-04-05 12:25     ` Florian Weimer

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=20230405115445.GG3298@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=fweimer@redhat.com \
    --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).