Re: copy_from_user/copy_to_user question

From: Al Viro
Date: Fri Dec 02 2005 - 20:37:58 EST


On Fri, Dec 02, 2005 at 08:09:59PM -0500, Steven Rostedt wrote:
> > Secondly, they seem to use memcpy as opposed to using
> > copy_to_user/copy_from_user which is also very
> > dangerous.
>
> If they are grabbing data from user context into kernel (or vise versa)
> that could easily cause an oops. Not to mention it is a security risk.

Not to mention it simply won't work on a many platforms, no matter what...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/