diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-06-18 16:42:10 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-06-18 16:42:10 +0200 |
commit | 2c75b545de6fe3c44138799c68217a94bc669a88 (patch) | |
tree | fa8cd3f23ec090151bfac600ee394757634cfa05 /ChangeLog | |
parent | 02d8b5ab1c89bcef2627d2b621bfb35b573852c2 (diff) | |
download | glibc-2c75b545de6fe3c44138799c68217a94bc669a88.tar.gz glibc-2c75b545de6fe3c44138799c68217a94bc669a88.tar.xz glibc-2c75b545de6fe3c44138799c68217a94bc669a88.zip |
elf: Refuse to dlopen PIE objects [BZ #24323]
Another executable has already been mapped, so the dynamic linker cannot perform relocations correctly for the second executable.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 7401f9f05a..ac06595fb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2019-06-18 Florian Weimer <fweimer@redhat.com> + + [BZ #24323] + * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE. + * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and + fail when called from dlopen. + * elf/Makefile [have-fpie && build-shared] (tests): Add + tst-dlopen-pie. + (tst-dlopen-pie): Link with -ldl. + (tst-dlopen-pie.out): Add run-time dependency on tst-pie1. + * elf/tst-dlopen-pie.c (do_test): New file. + 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com> [BZ #24614] |