<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/usb/usbvision, branch linux-3.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-06-15T07:32:05Z</updated>
<entry>
<title>[media] usbvision: revert commit 588afcc1</title>
<updated>2016-06-15T07:32:05Z</updated>
<author>
<name>Vladis Dronov</name>
</author>
<published>2016-01-31T16:14:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aad7758adca5d92a7ad06b43271c5c045a445c98'/>
<id>urn:sha1:aad7758adca5d92a7ad06b43271c5c045a445c98</id>
<content type='text'>
commit d5468d7afaa9c9e961e150f0455a14a9f4872a98 upstream.

Commit 588afcc1c0e4 ("[media] usbvision fix overflow of interfaces
array")' should be reverted, because:

* "!dev-&gt;actconfig-&gt;interface[ifnum]" won't catch a case where the value
is not NULL but some garbage. This way the system may crash later with
GPF.

* "(ifnum &gt;= USB_MAXINTERFACES)" does not cover all the error
conditions. "ifnum" should be compared to "dev-&gt;actconfig-&gt;
desc.bNumInterfaces", i.e. compared to the number of "struct
usb_interface" kzalloc()-ed, not to USB_MAXINTERFACES.

* There is a "struct usb_device" leak in this error path, as there is
usb_get_dev(), but no usb_put_dev() on this path.

* There is a bug of the same type several lines below with number of
endpoints. The code is accessing hard-coded second endpoint
("interface-&gt;endpoint[1].desc") which may not exist. It would be great
to handle this in the same patch too.

* All the concerns above are resolved by already-accepted commit fa52bd50
("[media] usbvision: fix crash on detecting device with invalid
configuration")

* Mailing list message:
http://www.spinics.net/lists/linux-media/msg94832.html

Signed-off-by: Vladis Dronov &lt;vdronov@redhat.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>usbvision: fix crash on detecting device with invalid configuration</title>
<updated>2016-04-20T06:46:51Z</updated>
<author>
<name>Vladis Dronov</name>
</author>
<published>2015-11-16T17:55:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b166252bc3084f069bf8213ca5fa0861ccd44c4'/>
<id>urn:sha1:5b166252bc3084f069bf8213ca5fa0861ccd44c4</id>
<content type='text'>
commit fa52bd506f274b7619955917abfde355e3d19ffe upstream.

The usbvision driver crashes when a specially crafted usb device with invalid
number of interfaces or endpoints is detected. This fix adds checks that the
device has proper configuration expected by the driver.

Reported-by: Ralf Spenneberg &lt;ralf@spenneberg.net&gt;
Signed-off-by: Vladis Dronov &lt;vdronov@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;

</content>
</entry>
<entry>
<title>usbvision: fix leak of usb_dev on failure paths in usbvision_probe()</title>
<updated>2016-04-20T06:46:50Z</updated>
<author>
<name>Alexey Khoroshilov</name>
</author>
<published>2015-03-27T22:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ae11c7f1bc611944effa70ab35b6f124360c3e3'/>
<id>urn:sha1:4ae11c7f1bc611944effa70ab35b6f124360c3e3</id>
<content type='text'>
commit afd270d1a45043cef14341bcceff62ed50e8dc9a upstream.

There is no usb_put_dev() on failure paths in usbvision_probe().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;

</content>
</entry>
<entry>
<title>[media] usbvision fix overflow of interfaces array</title>
<updated>2016-03-07T13:53:48Z</updated>
<author>
<name>Oliver Neukum</name>
</author>
<published>2015-10-27T11:51:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1d5059a4e88c44a9fe45a266adf8978735dde32'/>
<id>urn:sha1:e1d5059a4e88c44a9fe45a266adf8978735dde32</id>
<content type='text'>
commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream.

This fixes the crash reported in:
http://seclists.org/bugtraq/2015/Oct/35
The interface number needs a sanity check.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.com&gt;
Cc: Vladis Dronov &lt;vdronov@redhat.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: fix locking error</title>
<updated>2015-10-28T15:38:32Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6b3346c6f41b0fa4e06cc66d104bab74abac922'/>
<id>urn:sha1:d6b3346c6f41b0fa4e06cc66d104bab74abac922</id>
<content type='text'>
commit e2c84ccb0fbe5e524d15bb09c042a6ca634adaed upstream.

If remove_pending is non-zero, then the v4l2_lock is never unlocked.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Cc: Oliver Neukum &lt;ONeukum@suse.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>[media] usbvision-video: two use after frees</title>
<updated>2014-11-19T21:46:10Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2014-10-16T07:57:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=214c97a12f1f14260b90eea07444de6aa3b90d27'/>
<id>urn:sha1:214c97a12f1f14260b90eea07444de6aa3b90d27</id>
<content type='text'>
commit 470a9147899500eb4898f77816520c4b4aa1a698 upstream.

The lock has been freed in usbvision_release() so there is no need to
call mutex_unlock() here.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>[media] usbvision-video: fix memory leak of alt_max_pkt_size</title>
<updated>2013-06-21T14:29:24Z</updated>
<author>
<name>Alexey Khoroshilov</name>
</author>
<published>2013-06-10T20:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=090c65b694c362adb19ec9c27de216a808ee443c'/>
<id>urn:sha1:090c65b694c362adb19ec9c27de216a808ee443c</id>
<content type='text'>
1. usbvision-&gt;alt_max_pkt_size is not deallocated anywhere.
2. if allocation of usbvision-&gt;alt_max_pkt_size fails,
there is no proper deallocation of already acquired resources.
The patch adds kfree(usbvision-&gt;alt_max_pkt_size) to
usbvision_release() as soon as other deallocations happen there.
It calls usbvision_release() if allocation of
usbvision-&gt;alt_max_pkt_size fails as soon as usbvision_release()
is safe to work with incompletely initialized usbvision structure.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: remove obsolete v4l2_chip_match_host()</title>
<updated>2013-06-21T13:30:54Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-05-26T11:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ec19898ed6990baa285b8c96a8b1a0d0366bc46'/>
<id>urn:sha1:6ec19898ed6990baa285b8c96a8b1a0d0366bc46</id>
<content type='text'>
This function is no longer needed since it is now the responsibility of the
v4l2 core to check if the DBG_G/S_REGISTER and DBG_G_CHIP_INFO ioctls are
called for the bridge driver or not.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: replace current_norm by g_std</title>
<updated>2013-06-17T12:37:23Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-06-03T08:36:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b8436d9db43a810dd44393733b34fda6e0f0b9d'/>
<id>urn:sha1:3b8436d9db43a810dd44393733b34fda6e0f0b9d</id>
<content type='text'>
current_norm use is deprecated because it is per-devicenode and if you
have more device nodes all dependent on the same video source, then this
no longer works. Just implement g_std instead.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: add const to argument of write-only s_register ioctl</title>
<updated>2013-03-24T11:47:01Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-03-24T11:28:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc'/>
<id>urn:sha1:977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc</id>
<content type='text'>
This ioctl is defined as IOW, so pass the argument as const.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
