lkml.org 
[lkml]   [2002]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: AUDIT of 2.5.15 copy_to/from_user
Date

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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.073 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site