Re: Suspicious code in i2c-dev.c

From: willy@thepuffingroup.com
Date: Mon Jan 24 2000 - 22:59:44 EST


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/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:13 EST