Nice hack, except it wouldn't work. Verifying pointers in userland is
most easily done by (gack!) reading all bytes of the region in
question; on the x86 using a "rep lodsl" (yes, an actual use for rep
lodsl).
Not necessarily fast, if the region is large, though; but it's still
faster than anything that involves a system call (especially since the
kernel does the effectively same thing.)
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html