Re: copy_from_user() fix

Chris Wedgwood (chris@cybernet.co.nz)
Thu, 27 Aug 1998 10:54:00 +1200


On Wed, Aug 26, 1998 at 04:17:34AM -0700, David S. Miller wrote:

> Consider a userland pointer verification library that worked in
> about 10 lines of code by passing the pointer in question to a
> sys_write() call to /dev/null... but this wouldn't work actually
> these days due to how the kernel won't even verify the pointer in
> this case.

Ooo... nice hack.

You could probably implement this by reading /proc/self/maps anyhow,
it would be several orders of magnitude slower than your suggestion
though.

-cw

-
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