Re: AUDIT of 2.5.15 copy_to/from_user

Alan Cox
2002-05-19T12:27:02Z

> copy_to/from_user() --> will return the number of bytes that were _not_
> copied. If one does not care about partially successes just use:
>
> if (copy_to/from_user())
> return -EFAULT;

Yes

> __copy_to/from_user() --> the same as above, but can they actually return
> anything other than 0? My assembler is no good and I'm not able to see if

They do the same things, but don't do any initial range checks that might
be done by access_ok before hand