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]

Re: kprobe fault handling


Hi -

On Fri, Feb 10, 2006 at 02:42:23PM -0800, Martin Hunt wrote:
> > Er, the "__copy_from_user" family?!  The "_inatomic" function, whose
> > name encodes its very inatomicity?
> 
> Don't read too much into a name.

What led you to read too little into it?

> What makes the __copy_from_user functions more unsafe than the
> strncpy_from_user or get_user functions?  Or are they all unsafe?

Those kernel functions are similarly unsafe (for purposes of
systemtap), since they can sleep (wait while page faults are being
serviced).  This is why Roland went out of his way to collect
alternatives in loc2c-runtime.h.  This was explained at the time.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]