Re: Kernel Oops-jprobe

From: Balbir Singh
Date: Fri Mar 17 2006 - 06:12:34 EST


> > 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/