<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/comedi, branch v3.2.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/staging/comedi?h=v3.2.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/staging/comedi?h=v3.2.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-11-27T19:38:45Z</updated>
<entry>
<title>Staging: comedi: fix integer overflow in do_insnlist_ioctl()</title>
<updated>2011-11-27T19:38:45Z</updated>
<author>
<name>Xi Wang</name>
<email>xi.wang@gmail.com</email>
</author>
<published>2011-11-25T21:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dfd8ee92a9192d78aa38cf8699df3630a7c88c85'/>
<id>urn:sha1:dfd8ee92a9192d78aa38cf8699df3630a7c88c85</id>
<content type='text'>
There is a potential integer overflow in do_insnlist_ioctl() if
userspace passes in a large insnlist.n_insns.  The call to kmalloc()
would allocate a small buffer, leading to a memory corruption.

The bug was reported by Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
and Haogang Chen &lt;haogangchen@gmail.com&gt;.  The patch was suggested by
Ian Abbott &lt;abbotti@mev.co.uk&gt; and Lars-Peter Clausen &lt;lars@metafoo.de&gt;.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reported-by: Haogang Chen &lt;haogangchen@gmail.com&gt;.
Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Xi Wang &lt;xi.wang@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Revert "Staging: comedi: integer overflow in do_insnlist_ioctl()"</title>
<updated>2011-11-27T19:36:10Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2011-11-27T19:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=06b446c8af5db5a98b2eaa30b513c79089ed254b'/>
<id>urn:sha1:06b446c8af5db5a98b2eaa30b513c79089ed254b</id>
<content type='text'>
This reverts commit e384a41141949843899affcf51f4e6e646c1fe9f.
It's not the correct way to solve this issue.

Acked-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: integer overflow in do_insnlist_ioctl()</title>
<updated>2011-11-27T02:34:15Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2011-11-04T18:20:43Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e384a41141949843899affcf51f4e6e646c1fe9f'/>
<id>urn:sha1:e384a41141949843899affcf51f4e6e646c1fe9f</id>
<content type='text'>
There is an integer overflow here that could cause memory corruption
on 32 bit systems.

insnlist.n_insns could be a very high value size calculation for
kmalloc() could overflow resulting in a smaller "insns" than
expected.  In the for (i = 0; i &lt; insnlist.n_insns; i++) {... loop
we would read past the end of the buffer, possibly corrupting memory
as well.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: fix signal handling in read and write</title>
<updated>2011-11-27T02:34:15Z</updated>
<author>
<name>Federico Vaga</name>
<email>federico.vaga@gmail.com</email>
</author>
<published>2011-10-29T07:47:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6a9ce6b654e491981f6ef7e214cbd4f63e033848'/>
<id>urn:sha1:6a9ce6b654e491981f6ef7e214cbd4f63e033848</id>
<content type='text'>
After sleeping on a wait queue, signal_pending(current) should be
checked (not before sleeping).

Acked-by: Alessandro Rubini &lt;rubini@gnudd.com&gt;
Signed-off-by: Federico Vaga &lt;federico.vaga@gmail.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: fix mmap_count</title>
<updated>2011-11-27T02:34:14Z</updated>
<author>
<name>Federico Vaga</name>
<email>federico.vaga@gmail.com</email>
</author>
<published>2011-10-29T07:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=df30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d'/>
<id>urn:sha1:df30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d</id>
<content type='text'>
In comedi_fops, mmap_count is decremented at comedi_vm_ops-&gt;close but
it is not incremented at comedi_vm_ops-&gt;open. This may result in a negative
counter.  The patch introduces the open method to keep the counter
consistent.

The bug was triggerd by this sample code:

        mmap(0, ...., comedi_fd);
        fork();
        exit(0);

Acked-by: Alessandro Rubini &lt;rubini@gnudd.com&gt;
Signed-off-by: Federico Vaga &lt;federico.vaga@gmail.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>staging: comedi: fix oops for USB DAQ devices.</title>
<updated>2011-11-27T02:34:14Z</updated>
<author>
<name>Bernd Porr</name>
<email>berndporr@f2s.com</email>
</author>
<published>2011-11-08T21:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3ffab428f40849ed5f21bcfd7285bdef7902f9ca'/>
<id>urn:sha1:3ffab428f40849ed5f21bcfd7285bdef7902f9ca</id>
<content type='text'>
This fixes kernel oops when an USB DAQ device is plugged out while it's
communicating with the userspace software.

Signed-off-by: Bernd Porr &lt;berndporr@f2s.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>staging: comedi: usbduxsigma: Fixed wrong range for the analogue channel.</title>
<updated>2011-11-27T02:34:14Z</updated>
<author>
<name>Bernd Porr</name>
<email>berndporr@f2s.com</email>
</author>
<published>2011-11-08T21:21:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8b78607fc4a26c2e26c4a614ff0bbd3380abc402'/>
<id>urn:sha1:8b78607fc4a26c2e26c4a614ff0bbd3380abc402</id>
<content type='text'>
It's actually +/-2.65V/2 and not +/-2.65V.

Signed-off-by: Bernd Porr &lt;berndporr@f2s.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: fix brace coding style issue in ni_atmio.c</title>
<updated>2011-10-17T22:11:30Z</updated>
<author>
<name>Jake Burton</name>
<email>jake5991@live.com</email>
</author>
<published>2011-10-10T16:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=963ff7740d52586a0fb79f459abebf39997d3ae6'/>
<id>urn:sha1:963ff7740d52586a0fb79f459abebf39997d3ae6</id>
<content type='text'>
This is a patch to the ni_atmio.c file which fixes a brace and whitespace warning found by the checkpatch.pl tool

Signed-off-by: Jake Burton &lt;jake5991@live.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: c6xdigio: fixed missing KERN_* in printk</title>
<updated>2011-10-17T22:11:30Z</updated>
<author>
<name>Nasir Abed</name>
<email>nasirabed@gmail.com</email>
</author>
<published>2011-10-10T10:09:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0bdd2b620794f4f8bddac620b774d7fbf879dcbc'/>
<id>urn:sha1:0bdd2b620794f4f8bddac620b774d7fbf879dcbc</id>
<content type='text'>
Fixed missing KERN_* in printk statements.

Signed-off-by: Nasir Abed &lt;nasirabed+kernel@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>drivers:staging:comedi:drivers:cb_das_cs.c codeing style issue</title>
<updated>2011-09-27T00:43:45Z</updated>
<author>
<name>Christopher Rice</name>
<email>rice.christopher.a@gmail.com.com</email>
</author>
<published>2011-09-23T23:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=589cabe1b13576b85419d73ba87e50f7f80463fb'/>
<id>urn:sha1:589cabe1b13576b85419d73ba87e50f7f80463fb</id>
<content type='text'>
drivers: staging: comedi: cb_das16_cs.c
fixed over 80 line issue, and removed a space before tab issue.

Signed-off-by: Christopher Rice &lt;rice.christopher.a@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
