Re: AUDIT of 2.5.15 copy_to/from_user

David Woodhouse
2002-05-19T17:53:10Z

alan@lxorguk.ukuu.org.uk said:
> > On the emu10k1 driver we use access_ok(VERIFY_READ) once at the
> > beginning of the write() routine to check we can access the user buffer.
> > After that we always use __copy_from_user() and we trust it not to fail.
> > Is this correct, or not?

> This is correct

Even if another thread unmaps the page we were trying to read from between
the access_ok() and the actual copy?

--
dwmw2