mailing list of musl libc
 help / color / mirror / code / Atom feed
From: enh <enh@google.com>
To: musl@lists.openwall.com
Subject: Re: [musl] [PATCH 0/1] ldso: continue searching if wrong architecture is found
Date: Wed, 7 Feb 2024 09:54:40 -0800	[thread overview]
Message-ID: <CAJgzZooukoGnko+faeX6kyr0zC5XcP123KLmBmRJxisVV1zSuA@mail.gmail.com> (raw)
In-Reply-To: <Pine.BSM.4.64L.2402071705230.2180@herc.mirbsd.org>

On Wed, Feb 7, 2024 at 9:17 AM Thorsten Glaser <tg@mirbsd.de> wrote:
>
> enh dixit:
>
> >helpful in catching cases where people had libraries for the wrong
> >_architecture_, not just the wrong bitness. "with enough users, all
> >errors are common" :-) )
>
> But are these errors?

well, that's the philosophical question that brings us here today :-)

> On Debian, with Multi-Arch and qemu-user and whatnot, that would not
> even be unusual, if perhaps not common.
>
> I’m mildly tending towards ignoring objects that are not valid
> shared objects of the current architecture and ABI.

i think the strongest argument we heard in favor of ignoring this is
the "what about a 64-bit process that exec()s a 32-bit process, or
vice versa?". on Android that's probably also a bug. having the
_libraries_ for two bitnesses isn't unusual (or "wasn't" anyway --- in
2024 we're getting to the point where low-end is 32-only and the rest
64-only, but 32/64 was common for the last decade), but _executables_
(other than the two zygotes) was probably a bug, and encouraging apps
not to have 64-bit helpers in addition to 64-bit libraries was only
going to cause us trouble for the inevitable _switch_ to 64-only when
arm64 hardware dropped 32-bit support. moreover, getting a _correct_
value of LD_LIBRARY_PATH on Android is non-trivial anyway, given the
split between system and vendor code.

but, yeah, if you're mainly thinking about x86-64, that doesn't seem
likely to ever drop 32-bit support, so your "transition" might be
something you never come out of.

> bye,
> //mirabilos
> --
> Support mksh as /bin/sh and RoQA dash NOW!
> ‣ src:bash (429 (458) bugs: 0 RC, 295 (315) I&N, 134 (143) M&W, 0 F&P) + 209
> ‣ src:dash (90 (104) bugs: 0 RC, 51 (54) I&N, 39 (50) M&W, 0 F&P) + 62 ubu
> ‣ src:mksh (1 bug: 0 RC, 0 I&N, 1 M&W, 0 F&P)
> dash has two RC bugs they just closed because they don’t care about quality…

  reply	other threads:[~2024-02-07 17:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07  1:22 Markus Mayer
2024-02-07  1:22 ` [musl] [PATCH 1/1] ldso: continue searching if wrong architecture is found first Markus Mayer
2024-02-07 17:30   ` Rich Felker
2024-02-07 19:10     ` i262jq
2024-02-07 19:51       ` Thorsten Glaser
2024-02-08 15:52         ` i262jq
2024-02-07 20:59     ` Markus Mayer
2024-02-07  8:26 ` [musl] [PATCH 0/1] ldso: continue searching if wrong architecture is found i262jq
2024-02-07 16:45   ` enh
2024-02-07 17:07     ` Thorsten Glaser
2024-02-07 17:54       ` enh [this message]
2024-02-07 18:09 ` Colin Cross
2024-04-02 20:59   ` Markus Mayer

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=CAJgzZooukoGnko+faeX6kyr0zC5XcP123KLmBmRJxisVV1zSuA@mail.gmail.com \
    --to=enh@google.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).