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/14463] "scheduling while atomic" bug on rawhide


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

--- Comment #1 from David Smith <dsmith at redhat dot com> 2012-08-13 19:45:20 UTC ---
I believe I know what's going on here.  When we find a new task, we call
__stp_utrace_attach() to attach to the child. __stp_utrace_attach() calls
utrace_set_events() to set the right events to look for.  However, if
utrace_set_events() returns -EINPROGRESS we call utrace_barrier() to wait until
a current callback is finished.

__stp_utrace_attach() isn't safe enough be called from a tracepoint handler
since we're in atomic context there.  We'll need to use the task_work feature
in a few more places to make it safe to call sleepy functions.

-- 
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]