public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Check ld.so/libc.so consistency during startup
@ 2022-08-19 10:16 Florian Weimer
  2022-08-19 10:16 ` [PATCH 1/2] scripts/glibcelf.py: Add hashing support Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Weimer @ 2022-08-19 10:16 UTC (permalink / raw)
  To: libc-alpha

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


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

end of thread, other threads:[~2022-08-23 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 10:16 [PATCH 0/2] Check ld.so/libc.so consistency during startup Florian Weimer
2022-08-19 10:16 ` [PATCH 1/2] scripts/glibcelf.py: Add hashing support Florian Weimer
2022-08-23 15:13   ` Carlos O'Donell
2022-08-23 17:34     ` Florian Weimer
2022-08-19 10:16 ` [PATCH 2/2] Detect ld.so and libc.so version inconsistency during startup Florian Weimer
2022-08-23 15:13   ` Carlos O'Donell
2022-08-23 15:14 ` [PATCH 0/2] Check ld.so/libc.so consistency " Carlos O'Donell

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