Re: [PATCH] Staging: comedi: fix information leak

From: Dan Carpenter
Date: Tue Mar 10 2015 - 02:45:19 EST


On Mon, Mar 09, 2015 at 09:08:17PM +0100, Matteo Semenzato wrote:
> From: Matteo Semenzato <mattew8898@xxxxxxxxx>
>
> The comedi_cmd struct has an hole after chanlist_len that could contain uninitialized
> memory, this struct is copied to userspace.
>

Is this a Smatch warning? If so then, I appologize because it's a false
positive. You really need to have the cross function database built for
that test to work.

The struct is initialized in __comedi_get_user_cmd().

regards,
dan carpenter

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