This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/13289] New: %m/%M printf formatting operators access memory incorrectly
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 12 Oct 2011 21:51:35 +0000
- Subject: [Bug runtime/13289] New: %m/%M printf formatting operators access memory incorrectly
- Auto-submitted: auto-generated
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.