On 2014-07-28 at 09:58:12 +0200, Anil Belur <ask...@gmail.com> wrote:
> From: Anil Belur <ask...@gmail.com>
> 
> - private_ioctl() the internally calls copy_{to,from}_user() and does
>   not use '__user' while refrencing user space pointers.
> - this patch passes __user annotation as a cast, when the pointer is
>  being refernced.

Wouldn't it be better to annotate the data member in struct tagSCmdRequest
with __user instead of introducing all these casts?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to