lkml.org 
[lkml]   [2000]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Suspicious code in i2c-dev.c
On Mon, Jan 24, 2000 at 10:39:48PM +0100, Frodo Looijaard wrote:
> PS Things are not as bad as you might think; at several places, we
> call verify_area instead of checking the return code of
> copy_{to,from}_user. As far as I know, this should also guard
> against possible faults.

I don't think so. Consider a multithreaded application whose other
thread munmaps the area that you verified. Unlikely, but you don't want
to break.

-
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.tux.org/lkml/

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