lkml.org 
[lkml]   [2006]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel Oops-jprobe
> > I think the handler should first copy_from_user().
>
> User must not call copy_from_user() in the handler, since preemption is
> disabled and the copy_from_user might cause a page fault that might
> sleep if the user page is not in the memory. Although the latest patch
> posted on lkml tries to fixup the exception, it may some
> times not succeed and the data collected might be incorrect.
>
Yes, you are right. I forgot about the probe handler requirements. In
that case you need to come up with your own trick to get the user
space data. Also look at/use systemtap.

Balbir
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-17 12:14    [W:0.044 / U:1.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site