about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-18 16:42:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-06-18 16:42:10 +0200
commit2c75b545de6fe3c44138799c68217a94bc669a88 (patch)
treefa8cd3f23ec090151bfac600ee394757634cfa05 /ChangeLog
parent02d8b5ab1c89bcef2627d2b621bfb35b573852c2 (diff)
downloadglibc-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--ChangeLog12
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]