Messages in this thread |  | | | Date | Fri, 2 Dec 2005 14:40:25 -0800 (PST) | | From | Vinay Venkataraghavan <> | | Subject | copy_from_user/copy_to_user question |
| |
I have a question regarding copy_to_user and copy_from_user, specifically the conditons and situations when they can be used.
Firstly, I guess it is always safe to use these funtions when making an ioctl call.
But my question is: Are there any specific circumstances or conditions when these functions don't have to be used, but at the same time ensure that no page fault occurs and crashes the system.
The reason I ask is, there is some software that I am dealing with that just don't use these functions.
Secondly, they seem to use memcpy as opposed to using copy_to_user/copy_from_user which is also very dangerous.
Any thoughts?
Vinay
__________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - 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/
|  |