Re: referring a user address from ioctl entry point

From: Arjan van de Ven
Date: Tue Mar 21 2006 - 09:44:24 EST


On Tue, 2006-03-21 at 20:14 +0530, yogeshwar sonawane wrote:
> Hi all,
>
> can we write directly to user virtual address from kernel space?
> i.e. dereferencing a user address from driver entry point?
>

No this is not allowed and a big security hole at minimum.
You HAVE to use copy_from_user / copy_to_user and similar API to do
this. Be glad the FC3 kernel doesn't allow this at all ;)


-
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/