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/13289] New: %m/%M printf formatting operators access memory incorrectly


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

             Bug #: 13289
           Summary: %m/%M printf formatting operators access memory
                    incorrectly
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com
    Classification: Unclassified


While working on bug #12341 on s390x, I found that running the memory1.exp test
would crash the system.  After lots of debugging, I found that the %m/%M printf
formatting operators were accessing memory incorrectly.

When the %m/%M formatting operators are used, translate.cxx emits code that
uses deref_buffer() to validate whether the memory used at the address can be
accessed safely.  If the works, the code in _stp_vsnprintf() actually reads the
memory to put in the output buffer.  However, the _stp_vsnprintf() code
accesses the memory directly, instead of using deref().

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]