public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* copy_from_user/copy_to_user question
@ 2005-12-02 22:40 Vinay Venkataraghavan
  2005-12-03  1:09 ` Steven Rostedt
  0 siblings, 1 reply; 25+ messages in thread
From: Vinay Venkataraghavan @ 2005-12-02 22:40 UTC (permalink / raw)
  To: linux-kernel


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 


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2005-12-06 20:06 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5fv0G-3kS-11@gated-at.bofh.it>
     [not found] ` <5fvam-3vP-9@gated-at.bofh.it>
2005-12-03  2:47   ` copy_from_user/copy_to_user question Robert Hancock
2005-12-03  3:23     ` Steven Rostedt
2005-12-03  3:33       ` Robert Hancock
2005-12-03  4:53         ` Steven Rostedt
2005-12-03 22:35       ` Andi Kleen
2005-12-03 18:26         ` Steven Rostedt
2005-12-06 17:53           ` Vinay Venkataraghavan
2005-12-06 17:56             ` Arjan van de Ven
2005-12-06 18:23             ` Steven Rostedt
2005-12-06 18:23             ` linux-os (Dick Johnson)
2005-12-06 18:42               ` Steven Rostedt
2005-12-06 19:58                 ` linux-os (Dick Johnson)
2005-12-06 20:05               ` Vinay Venkataraghavan
2005-12-02 22:40 Vinay Venkataraghavan
2005-12-03  1:09 ` Steven Rostedt
2005-12-03  1:38   ` Al Viro
2005-12-03  2:02     ` Steven Rostedt
2005-12-03  2:11       ` Vinay Venkataraghavan
2005-12-03  2:22         ` Vinay Venkataraghavan
2005-12-03  2:27         ` Steven Rostedt
2005-12-03  8:33         ` Arjan van de Ven
2005-12-03  9:43       ` Heiko Carstens
2005-12-03 12:14         ` Steven Rostedt
2005-12-03 22:33       ` Andi Kleen
2005-12-05 13:31   ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox