* [Bug dyninst/15624] New: stapdyn deref failure with high pointers on i686
@ 2013-06-13 21:43 jistone at redhat dot com
2013-06-13 22:29 ` [Bug dyninst/15624] " jistone at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2013-06-13 21:43 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=15624
Bug ID: 15624
Summary: stapdyn deref failure with high pointers on i686
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: dyninst
Assignee: systemtap at sourceware dot org
Reporter: jistone at redhat dot com
The tests pretty-bits.exp and pretty-char.exp are failing on --runtime=dyninst.
I tracked this down to an EINVAL from pread() in our __copy_from_user(). Since
these tests are reading from the module's own static locals, the pointer used
as a pread offset can be fairly large, e.g. 0xb771e10c. Notice the most
significant bit is set, and off_t is a signed type, so this is effectively
negative. It appears that pread() will not let the offset wrap around, so it's
EINVAL.
Preliminary testing with FILE_OFFSET_BITS 64 looks better. Conceivably, this
could still fail if a 64-bit machine had userspace addresses > INT64_MAX. But
at least on x86_64, TASK_SIZE_MAX is just 2^47.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug dyninst/15624] stapdyn deref failure with high pointers on i686
2013-06-13 21:43 [Bug dyninst/15624] New: stapdyn deref failure with high pointers on i686 jistone at redhat dot com
@ 2013-06-13 22:29 ` jistone at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2013-06-13 22:29 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=15624
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
commit 1e2a80ed14301765bf6ae51ae3639d1d90eef9ac
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-13 22:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-13 21:43 [Bug dyninst/15624] New: stapdyn deref failure with high pointers on i686 jistone at redhat dot com
2013-06-13 22:29 ` [Bug dyninst/15624] " jistone at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).