This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]