git: DragonFly_RELEASE_5_4 rtld-elf - Allow dynamic (late) relocations to relro section
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Mar 5 09:07:33 PST 2019
commit c1397a29df4a0593032f7f19c3b73aab2e4cdbf4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Feb 11 13:47:22 2019 -0800
rtld-elf - Allow dynamic (late) relocations to relro section
* Normally the relro section is mprotect()ed to read-only after normal
load relocations.
* It appears that some programs can issue dynamic relocations at
run-time to such sections.
* If the relro mprotect has been done on an object, temporarily mprotect
the object back to RW to execute the relocation, then mprotect it back
to RO.
Reported-by: marino
Summary of changes:
libexec/rtld-elf/rtld.c | 1 +
libexec/rtld-elf/x86_64/reloc.c | 12 ++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c1397a29df4a0593032f7f19c3b73aab2e4cdbf4
--
DragonFly BSD source repository
More information about the Commits
mailing list