[Bug runtime/23890] New: on f29 and later, elf segment/plt rearrangement leads to buildid verification errors

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

[Bug runtime/23890] New: on f29 and later, elf segment/plt rearrangement leads to buildid verification errors

github at kalvdans dot no-ip.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23890

            Bug ID: 23890
           Summary: on f29 and later, elf segment/plt rearrangement leads
                    to buildid verification errors
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

$ eu-readelf -l /bin/stap
Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  PHDR           0x000040 0x0000000000000040 0x0000000000000040 0x0002a0
0x0002a0 R   0x8
  INTERP         0x0002e0 0x00000000000002e0 0x00000000000002e0 0x00001c
0x00001c R   0x1
        [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x02df40
0x02df40 R   0x1000
  LOAD           0x02e000 0x000000000002e000 0x000000000002e000 0x265415
0x265415 R E 0x1000

  Segment Sections...
   00    
   01      [RO: .interp]
   02      [RO: .interp .note.gnu.property .note.ABI-tag .note.gnu.build-id
.gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt]
   03      [RO: .init .plt .plt.sec .text .fini]

but ... uprobes-inode.c ignores segment #2 (with the .notes) because it is
non-executable:

00777         /* Check non-writable, executable sections for probes. */
00778         if ((vm_flags & VM_EXEC) && !(vm_flags & VM_WRITE))
00779                 rc = stapiu_change_plus(target, task, addr, length,
00780                                         offset, vm_flags,
dentry->d_inode);

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

[Bug runtime/23890] on f29 and later, elf segment/plt rearrangement leads to buildid verification errors

github at kalvdans dot no-ip.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23890

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
commit fba365b4d365

--
You are receiving this mail because:
You are the assignee for the bug.