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 translator/4886] New: stap should validate debuginfo files


As far as I can tell, stap relies solely on file/directory names to determine
which debuginfo files to use.  It does not validate that, upon finding a match,
the debuginfo file is actually valid for the running kernel.  I confirmed this
by renaming an invalid vmlinux with the name stap expected to find for the
running kernel, then running a script.  I saw no errors up through compiling the
module, but once the module loaded the system crashed.

Stap should do some level of validation of the debuginfo files it uses, perhaps
by comparing the dwarf addresses to the addresses in /proc/kallsyms.  If they
don't match something's wrong.  It may be sufficient to check a small set of
well-known symbols rather than validating every address referenced in the script.

-- 
           Summary: stap should validate debuginfo files
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mmlnx at us dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4886

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


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