On Thu, Jan 25 2001, Richard B. Johnson wrote:
> [SNIPPED...]
> >From what I tested, copy_to/from_user, now seg-faults the caller directly.
> If the function returns, it worked. Therefore you will never get a
> chance to return -EFAULT.
Huh?? copy_to/from_user returns the bytes _not_ copied, in which
case you return -EFAULT go segv the caller.
I think the confusion usually is that put/get_user return -EFAULT
directly.
-- * Jens Axboe <axboe@suse.de> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:22 EST