public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Forced ordering for DFS ELF dependency sorting (bug 28937)
@ 2022-08-15 14:30 Florian Weimer
  2022-08-15 14:30 ` [PATCH 1/3] scripts/dso-ordering-test.py: Generate program run-time dependencies Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Florian Weimer @ 2022-08-15 14:30 UTC (permalink / raw)
  To: libc-alpha

An Arch Linux test case showed that in some cases, dlclose could unload
mappings that are still in use.  Triggering this requires dependency
cycles, which is why I think this is somewhat rare.

Tested on i686-linux-gnu and x86_64-linux-gnu.

Thanks,
Florian

Florian Weimer (3):
  scripts/dso-ordering-test.py: Generate program run-time dependencies
  elf: Rename _dl_sort_maps parameter from skip to force_first
  elf: Implement force_first handling in _dl_sort_maps_dfs

 elf/dl-sort-maps.c           | 47 ++++++++++++++++++++++++------------
 elf/dso-sort-tests-1.def     |  7 ++++++
 scripts/dso-ordering-test.py | 14 +++++------
 sysdeps/generic/ldsodefs.h   |  6 +++--
 4 files changed, 50 insertions(+), 24 deletions(-)


base-commit: 453b88efe6fa79f5c7c6fccc3a520c75fdd43074
-- 
2.37.1


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

end of thread, other threads:[~2022-09-06  6:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 14:30 [PATCH 0/3] Forced ordering for DFS ELF dependency sorting (bug 28937) Florian Weimer
2022-08-15 14:30 ` [PATCH 1/3] scripts/dso-ordering-test.py: Generate program run-time dependencies Florian Weimer
2022-08-15 14:35   ` Florian Weimer
2022-08-29 14:30   ` Adhemerval Zanella Netto
2022-08-15 14:30 ` [PATCH 2/3] elf: Rename _dl_sort_maps parameter from skip to force_first Florian Weimer
2022-08-29 16:40   ` Adhemerval Zanella Netto
2022-08-15 14:30 ` [PATCH 3/3] elf: Implement force_first handling in _dl_sort_maps_dfs Florian Weimer
2022-08-31 16:37   ` Adhemerval Zanella Netto
2022-08-31 16:37     ` Adhemerval Zanella Netto
2022-09-06  6:39     ` Florian Weimer

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