Messages in this thread | | | Date | Mon, 24 Jan 2000 22:59:44 -0500 | From | willy@thepuffi ... | Subject | Re: 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/
| |