public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/15219] New: syscall.exp failures on RHEL5, RHEL6, and rawhide
@ 2013-03-01 17:54 dsmith at redhat dot com
  2013-03-04 17:54 ` [Bug tapsets/15219] " dsmith at redhat dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dsmith at redhat dot com @ 2013-03-01 17:54 UTC (permalink / raw)
  To: systemtap

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

             Bug #: 15219
           Summary: syscall.exp failures on RHEL5, RHEL6, and rawhide
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com
    Classification: Unclassified


While investigating bug #15211, I realized that we were seeing some common
failures in syscall.exp across kernel versions:

On RHEL5 (2.6.18-308.20.1.el5 x86_64) and RHEL6 (2.6.32-279.14.1.el6.x86_64), I
see the following failures:

====
FAIL: 32-bit clock syscall
FAIL: 32-bit rt_signal syscall
FAIL: 32-bit timer syscall
====

On rawhide (3.8.0-0.rc6.git1.1.fc19.x86_64), I see the following failures:

====
FAIL: 32-bit clock syscall
FAIL: 32-bit timer syscall
====

From looking at systemtap.log, the failures all happen when the 32-bit compat
version of syscalls call the "real" syscall. The systemtap tapset has trouble
decoding the arguments.  For example:

timer: timer_settime (0, 1, UNKNOWN, 0xffff880014eeff30) = -22 (EINVAL)

That "UNKNOWN" value is coming from _struct_itimerspec_u(). Inside
_struct_itimerspec_u(), we return "UNKNOWN" when _stp_copy_from_user() fails.
In this case, _stp_copy_from_user() is failing because the memory it is reading
really isn't user memory. The 32-bit compat version of timer_settime() copies
the 'struct compat_itimerspec' pointer into a real 'struct itimerspec', then
calls the real sys_timer_settime().

We may need to loosen up _stp_copy_from_user().

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-01-07 22:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 17:54 [Bug tapsets/15219] New: syscall.exp failures on RHEL5, RHEL6, and rawhide dsmith at redhat dot com
2013-03-04 17:54 ` [Bug tapsets/15219] " dsmith at redhat dot com
2013-03-04 18:40 ` fche at redhat dot com
2013-06-03 13:38 ` dsmith at redhat dot com
2013-06-04 15:14 ` fche at redhat dot com
2013-06-05 17:58 ` dsmith at redhat dot com
2013-06-06 18:03 ` dsmith at redhat dot com
2013-06-11 14:37 ` dsmith at redhat dot com
2013-06-17 16:10 ` dsmith at redhat dot com
2013-08-26 20:44 ` dsmith at redhat dot com
2013-10-08 18:03 ` dsmith at redhat dot com
2013-10-08 18:15 ` dsmith at redhat dot com
2013-10-31 17:24 ` dsmith at redhat dot com
2014-01-07 22:02 ` dsmith 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).