Re: Provide example copy_in_user implementation

Linus Torvalds (torvalds@transmeta.com)
Tue, 24 Jun 2003 11:52:42 -0700 (PDT)


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/