diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-09-30 10:29:17 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-09-30 12:40:50 -0700 |
commit | 1e1ecea62e899acb58c3fdf3b320a0833ddd0dff (patch) | |
tree | 6b0b404bf7585d34ae6df1fa56f42c009e49d207 /localedata/C.UTF-8.in | |
parent | 32b96d0dec0294465d2221a8f049703599d9d8e4 (diff) | |
download | glibc-1e1ecea62e899acb58c3fdf3b320a0833ddd0dff.tar.gz glibc-1e1ecea62e899acb58c3fdf3b320a0833ddd0dff.tar.xz glibc-1e1ecea62e899acb58c3fdf3b320a0833ddd0dff.zip |
elf: Replace nsid with args.nsid [BZ #27609]
commit ec935dea6332cb22f9881cd1162bad156173f4b0 Author: Florian Weimer <fweimer@redhat.com> Date: Fri Apr 24 22:31:15 2020 +0200 elf: Implement __libc_early_init has @@ -856,6 +876,11 @@ no more namespaces available for dlmopen()")); /* See if an error occurred during loading. */ if (__glibc_unlikely (exception.errstring != NULL)) { + /* Avoid keeping around a dangling reference to the libc.so link + map in case it has been cached in libc_map. */ + if (!args.libc_already_loaded) + GL(dl_ns)[nsid].libc_map = NULL; + do_dlopen calls _dl_open with nsid == __LM_ID_CALLER (-2), which calls dl_open_worker with args.nsid = nsid. dl_open_worker updates args.nsid if it is __LM_ID_CALLER. After dl_open_worker returns, it is wrong to use nsid. Replace nsid with args.nsid after dl_open_worker returns. This fixes BZ #27609.
Diffstat (limited to 'localedata/C.UTF-8.in')
0 files changed, 0 insertions, 0 deletions