git: rtld-elf - Allow dynamic (late) relocations to relro section

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 11 13:49:59 PST 2019


commit 1f732d3d8e7e1bc46c6772f97df7c4e217cb54fd
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/1f732d3d8e7e1bc46c6772f97df7c4e217cb54fd


-- 
DragonFly BSD source repository


More information about the Commits mailing list