public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/28340] New: ld.so crashes while loading a DSO with a read-only dynamic section
@ 2021-09-14 17:46 siddhesh at sourceware dot org
  2021-09-14 17:46 ` [Bug dynamic-link/28340] " siddhesh at sourceware dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: siddhesh at sourceware dot org @ 2021-09-14 17:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28340

            Bug ID: 28340
           Summary: ld.so crashes while loading a DSO with a read-only
                    dynamic section
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: siddhesh at sourceware dot org
          Reporter: siddhesh at sourceware dot org
  Target Milestone: ---

ld.so crashes when trying to verify DSO with read-only dynamic section, e.g.
vdso64.so as shipped by the Linux kernel.

$ elf/ld.so --verify $(find /usr -name vdso64.so | head -1)

Actual Result:
Segfault

Expected Result:
Not crash

Since there's no way to load a dynamic object that has a read-only .dynamic
section and at the same time, has entries in the .dynamic section that need
adjustment during relocation, e.g. .plt.got address, .symtab address, etc.,
fail to load and return an error.

Patch coming up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-11-05  0:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 17:46 [Bug dynamic-link/28340] New: ld.so crashes while loading a DSO with a read-only dynamic section siddhesh at sourceware dot org
2021-09-14 17:46 ` [Bug dynamic-link/28340] " siddhesh at sourceware dot org
2021-09-22 18:14 ` cvs-commit at gcc dot gnu.org
2021-09-22 18:27 ` hjl.tools at gmail dot com
2021-09-24 16:27 ` fweimer at redhat dot com
2021-09-25 16:29 ` cvs-commit at gcc dot gnu.org
2021-10-19 13:41 ` cvs-commit at gcc dot gnu.org
2021-11-03  9:59 ` cvs-commit at gcc dot gnu.org
2021-11-03  9:59 ` cvs-commit at gcc dot gnu.org
2021-11-03  9:59 ` cvs-commit at gcc dot gnu.org
2021-11-05  0:39 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).