> > 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]