Messages in this thread | | | Date | Fri, 17 Mar 2006 16:41:38 +0530 | From | "Balbir Singh" <> | Subject | Re: 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/
| |