Re: AUDIT of 2.5.15 copy_to/from_user

Alan Cox
2002-05-19T22:35:14Z

> alan@lxorguk.ukuu.org.uk said:
> > > > After that we always use __copy_from_user() and we trust it not to fail.
> > > This is correct
>
> > The only check done in access_ok on x86 is the 0xC0000000->0xFFFFFFFF
> > check with isnt affected by remappings.
>
> Right.... so trusting __copy_to_user() not to fail doesn't seem
> particularly correct.

EFAULT reporting is not required by posix. Its not so much incorrect as
slightly rude..