Re: Provide example copy_in_user implementation

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Jun 24 2003 - 13:52:42 EST


On Tue, 24 Jun 2003, Pavel Machek wrote:
>
> ...so it should be exactly as fast.

No it shouldn't.

You should do the access_ok() only _once_ (well, twice: once for source
and once for dest).

Also, anything that copies memory one byte at a time is just asking to be
shot.

                Linus

-
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/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:17 EST