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

2015-03-09 Thread Dan Carpenter
On Mon, Mar 09, 2015 at 09:08:17PM +0100, Matteo Semenzato wrote: > From: Matteo Semenzato > > 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'

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

2015-03-09 Thread Ian Abbott
On 09/03/15 20:08, Matteo Semenzato wrote: From: Matteo Semenzato The comedi_cmd struct has an hole after chanlist_len that could contain uninitialized memory, this struct is copied to userspace. Signed-off-by: Matteo Semenato --- drivers/staging/comedi/comedi_fops.c | 2 ++ 1 file change

[PATCH] Staging: comedi: fix information leak

2015-03-09 Thread Matteo Semenzato
From: Matteo Semenzato The comedi_cmd struct has an hole after chanlist_len that could contain uninitialized memory, this struct is copied to userspace. Signed-off-by: Matteo Semenato --- drivers/staging/comedi/comedi_fops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/stagin