Suspicious code in i2c-dev.c

willy en thepuffingroup.com willy en thepuffingroup.com
Mar Ene 25 05:59:41 CST 2000


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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda