From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: <libc-alpha@sourceware.org>
Subject: [PATCH v5 0/4] Args adjustment with ./ld.so exe [BZ #23293]
Date: Thu, 5 May 2022 07:58:34 +0100 [thread overview]
Message-ID: <cover.1651732417.git.szabolcs.nagy@arm.com> (raw)
The Hurd ld.so start code had to be adjusted. This revealed that
the fix actually cuts across abstraction layers: fiddles with
ELF entry stack layout in generic code, skipping the intermediate
OS sysdep layer. I don't see a clean solution without more code
changes.
I run cross tests for i686-gnu, but not execution tests, so the
changes in sysdeps/mach/hurd/dl-sysdep.c require a review.
The patches are in the nsz/bug23293-v5 branch.
Szabolcs Nagy (4):
rtld: Use generic argv adjustment in ld.so [BZ #23293]
rtld: Remove DL_ARGV_NOT_RELRO
linux: Add a getauxval test [BZ #23293]
aarch64: Move ld.so _start to separate file and drop _dl_skip_args
elf/rtld.c | 90 ++++++++++++++++++------
sysdeps/aarch64/Makefile | 1 +
sysdeps/aarch64/dl-machine.h | 77 +-------------------
sysdeps/aarch64/dl-start.S | 53 ++++++++++++++
sysdeps/aarch64/dl-sysdep.h | 4 --
sysdeps/alpha/dl-sysdep.h | 23 ------
sysdeps/arc/dl-sysdep.h | 4 --
sysdeps/arm/dl-sysdep.h | 4 --
sysdeps/csky/dl-sysdep.h | 23 ------
sysdeps/generic/ldsodefs.h | 15 ++--
sysdeps/ia64/dl-sysdep.h | 23 ------
sysdeps/mach/hurd/dl-sysdep.c | 36 +++++-----
sysdeps/nios2/dl-sysdep.h | 4 --
sysdeps/s390/s390-32/dl-sysdep.h | 23 ------
sysdeps/sparc/dl-sysdep.h | 23 ------
sysdeps/unix/sysv/linux/Makefile | 1 +
sysdeps/unix/sysv/linux/dl-sysdep.c | 5 +-
sysdeps/unix/sysv/linux/ia64/dl-sysdep.h | 4 --
sysdeps/unix/sysv/linux/tst-getauxval.c | 74 +++++++++++++++++++
19 files changed, 223 insertions(+), 264 deletions(-)
create mode 100644 sysdeps/aarch64/dl-start.S
delete mode 100644 sysdeps/alpha/dl-sysdep.h
delete mode 100644 sysdeps/csky/dl-sysdep.h
delete mode 100644 sysdeps/ia64/dl-sysdep.h
delete mode 100644 sysdeps/s390/s390-32/dl-sysdep.h
delete mode 100644 sysdeps/sparc/dl-sysdep.h
create mode 100644 sysdeps/unix/sysv/linux/tst-getauxval.c
--
2.25.1
next reply other threads:[~2022-05-05 6:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 6:58 Szabolcs Nagy [this message]
2022-05-05 6:58 ` [PATCH v5 1/4] rtld: Use generic argv adjustment in ld.so " Szabolcs Nagy
2022-05-05 8:27 ` Szabolcs Nagy
2022-05-05 6:58 ` [PATCH v5 2/4] rtld: Remove DL_ARGV_NOT_RELRO Szabolcs Nagy
2022-05-05 6:59 ` [PATCH v5 3/4] linux: Add a getauxval test [BZ #23293] Szabolcs Nagy
2022-05-05 6:59 ` [PATCH v5 4/4] aarch64: Move ld.so _start to separate file and drop _dl_skip_args Szabolcs Nagy
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=cover.1651732417.git.szabolcs.nagy@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=libc-alpha@sourceware.org \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).