[PATCH 0/2] Check ld.so/libc.so consistency during startup
Florian Weimer
fweimer@redhat.com
Fri Aug 19 10:16:27 GMT 2022
This avoids mysterious crashes and produces a clear error message
instead.
This helps somewhat with concurrent glibc updates on a live system
because it inhibits coredumps resulting from mismatches. This avoids
secondary crashes from a coredump catching services that in turn crashes
during launch while the update is in progress. A full solution to the
concurrent update problem will look very different.
Tested on i686-linux-gnu and x86_64-linux-gnu. Built with
build-many-glibcs.py.
Thanks,
Florian
Florian Weimer (2):
scripts/glibcelf.py: Add hashing support
Detect ld.so and libc.so version inconsistency during startup
INSTALL | 9 ++++
Makerules | 14 ++++++
NEWS | 7 ++-
config.make.in | 1 +
configure | 11 +++++
configure.ac | 5 ++
csu/libc-start.c | 1 +
elf/Versions | 4 +-
elf/dl-call-libc-early-init.c | 9 ++--
elf/libc-early-init.h | 9 +++-
elf/tst-glibcelf.py | 19 ++++++++
manual/install.texi | 9 ++++
scripts/glibcelf.py | 19 ++++++++
scripts/libc_early_init_name.py | 85 +++++++++++++++++++++++++++++++++
14 files changed, 194 insertions(+), 8 deletions(-)
create mode 100644 scripts/libc_early_init_name.py
base-commit: f7b0fc5cc61301461e3c1a278240ce78701bb9a8
--
2.37.1
More information about the Libc-alpha
mailing list