[PATCH 0/3] Forced ordering for DFS ELF dependency sorting (bug 28937)

Florian Weimer fweimer@redhat.com
Mon Aug 15 14:30:29 GMT 2022


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



More information about the Libc-alpha mailing list