Re: copy_from_user() fixu

Chris Wedgwood (chris@cybernet.co.nz)
Thu, 27 Aug 1998 13:20:51 +1200


On Wed, Aug 26, 1998 at 08:44:35PM +0200, Werner Seiler wrote:

> >From IEEE Std 1003.1-1990 (POSIX Part 1)
> Chapter 2.4 Error Numbers, page 24:
>
>
> [EFAULT] Bad address
> The system detected an invalid address in attempting to
> use an argument of a call. The reliable detection of
> this error is imple-mentation defined; however,
> implementations that do detect this condition shall use
> this value.
>
>
> For me it seems that POSIX is in favor of the pro-EFAULT camp.

No.

Your looking at it from the wrong end.

EFAULT -> bad address

Getting an EFAULT means you passed a bad address.

bad address !> EFAULT

passing a bad address doesn't require an EFAULT.

-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