[Bug dynamic-link/25087] New: ldconfig mishandles unusual .dynstr placement

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/25087] New: ldconfig mishandles unusual .dynstr placement

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25087

            Bug ID: 25087
           Summary: ldconfig mishandles unusual .dynstr placement
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: [hidden email]
  Target Milestone: ---

This library is mishandled by ldconfig, because .dynstr is located in a
separate LOAD segment, with a load offset different from the first LOAD
segment:

Elf file type is DYN (Shared object file)
Entry point 0x2280
There are 10 program headers, starting at offset 241664

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000001a68 0x0000000000001a68  R      0x1000
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0x10
  NOTE           0x0000000000000238 0x0000000000000238 0x0000000000000238
                 0x0000000000000024 0x0000000000000024  R      0x4
  LOAD           0x0000000000002000 0x0000000000002000 0x0000000000002000
                 0x0000000000001201 0x0000000000001201  R E    0x1000
  LOAD           0x0000000000004000 0x0000000000004000 0x0000000000004000
                 0x0000000000000eb8 0x0000000000000eb8  R      0x1000
  GNU_EH_FRAME   0x00000000000048d8 0x00000000000048d8 0x00000000000048d8
                 0x0000000000000134 0x0000000000000134  R      0x4
  LOAD           0x0000000000005c68 0x0000000000006c68 0x0000000000006c68
                 0x00000000000003e8 0x0000000000000408  RW     0x1000
  GNU_RELRO      0x0000000000005c68 0x0000000000006c68 0x0000000000006c68
                 0x0000000000000398 0x0000000000000398  R      0x1
  LOAD           0x000000000003b000 0x0000000000008000 0x0000000000008000
                 0x0000000000000e80 0x0000000000000e80  RW     0x1000
  DYNAMIC        0x000000000003b230 0x0000000000008230 0x0000000000008230
                 0x0000000000000220 0x0000000000000220  RW     0x8

 Section to Segment mapping:
  Segment Sections...
   00     .note.gnu.build-id .hash .gnu.hash .dynsym .gnu.version
.gnu.version_r .rela.dyn .rela.plt
   01    
   02     .note.gnu.build-id
   03     .init .plt .plt.got .text .fini
   04     .rodata .eh_frame_hdr .eh_frame
   05     .eh_frame_hdr
   06     .init_array .fini_array .got .data .bss
   07     .init_array .fini_array .got
   08     .dynamic .dynstr
   09     .dynamic

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/25087] ldconfig mishandles unusual .dynstr placement

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25087

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andreas Schwab <[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=58e8f5fd2ba47b6dc47fd4d0a35e4175c7c87aaa

commit 58e8f5fd2ba47b6dc47fd4d0a35e4175c7c87aaa
Author: Andreas Schwab <[hidden email]>
Date:   Wed Oct 9 17:46:47 2019 +0200

    ldconfig: handle .dynstr located in separate segment (bug 25087)

    To determine the load offset of the DT_STRTAB section search for the
    segment containing it, instead of using the load offset of the first
    segment.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/25087] ldconfig mishandles unusual .dynstr placement

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25087

Andreas Schwab <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.31

--- Comment #2 from Andreas Schwab <[hidden email]> ---
Fixed in 2.31.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/25087] ldconfig mishandles unusual .dynstr placement

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25087

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug dynamic-link/25087] ldconfig mishandles unusual .dynstr placement

Sourceware - glibc-bugs mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25087

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eamonn+srcware at rxd4 dot com

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
*** Bug 23964 has been marked as a duplicate of this bug. ***

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