<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/usb/usbvision, branch linux-4.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-05-04T21:49:02Z</updated>
<entry>
<title>usbvision: revert commit 588afcc1</title>
<updated>2016-05-04T21:49:02Z</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=119d57d1ed4c66172dd1a8f396c19c2a81479c10'/>
<id>urn:sha1:119d57d1ed4c66172dd1a8f396c19c2a81479c10</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: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>[media] usbvision: fix crash on detecting device with invalid configuration</title>
<updated>2015-11-19T13:36:02Z</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=fa52bd506f274b7619955917abfde355e3d19ffe'/>
<id>urn:sha1:fa52bd506f274b7619955917abfde355e3d19ffe</id>
<content type='text'>
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;
</content>
</entry>
<entry>
<title>[media] usbvision fix overflow of interfaces array</title>
<updated>2015-11-17T16:56:31Z</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=588afcc1c0e45358159090d95bf7b246fb67565f'/>
<id>urn:sha1:588afcc1c0e45358159090d95bf7b246fb67565f</id>
<content type='text'>
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;
</content>
</entry>
<entry>
<title>[media] include/media: split I2C headers from V4L2 core</title>
<updated>2015-11-17T08:57:11Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2015-11-10T14:01:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5dcee225ce972fecb054e104be22b2a6f65303d'/>
<id>urn:sha1:b5dcee225ce972fecb054e104be22b2a6f65303d</id>
<content type='text'>
Currently, include/media is messy, as it contains both the V4L2 core
headers and some driver-specific headers on the same place. That makes
harder to identify what core headers should be documented and what
headers belong to I2C drivers that are included only by bridge/main
drivers that would require the functions provided by them.

Let's move those i2c specific files to its own subdirectory.

The files to move were produced via the following script:
	mkdir include/media/i2c
	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/*/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
	for i in include/media/*.h; do n=`basename $i`;  (for j in $(git grep -l $n); do dirname $j; done)|sort|uniq|grep -ve '^.$' &gt; list; num=$(wc -l list|cut -d' ' -f1); if [ $num == 1 ]; then if [ "`grep i2c list`" != "" ]; then git mv $i include/media/i2c; fi; fi; done

And the references corrected via this script:
    MAIN_DIR="media/"
    PREV_DIR="media/"
    DIRS="i2c/"

    echo "Checking affected files" &gt;&amp;2
    for i in $DIRS; do
	for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
		 n=`basename $j`
		git grep -l $n
	done
    done|sort|uniq &gt;files &amp;&amp; (
	echo "Handling files..." &gt;&amp;2;
	echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
	(
		cd include/$MAIN_DIR;
		for j in $DIRS; do
			for i in $(ls $j); do
				echo "perl -ne 's,(include [\\\"\\&lt;])$PREV_DIR($i)([\\\"\\&gt;]),\1$MAIN_DIR$j\2\3,; print \$_' |\\";
			done;
		done;
		echo "cat &gt; a &amp;&amp; mv a \$i; done";
	);
	echo "Handling documentation..." &gt;&amp;2;
	echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
	(
		cd include/$MAIN_DIR;
		for j in $DIRS; do
			for i in $(ls $j); do
				echo "  perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
			done;
		done;
		echo "cat &gt; a &amp;&amp; mv a \$i; done"
	);
    ) &gt;script &amp;&amp; . ./script

Merged Sakari Ailus patch that moves smiapp.h to include/media/i2c.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: move init code to probe()</title>
<updated>2015-08-11T09:55:26Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df3cfa6d9265f10fabc3c44f852d6b6bbf26029e'/>
<id>urn:sha1:df3cfa6d9265f10fabc3c44f852d6b6bbf26029e</id>
<content type='text'>
These things are only initialized if you start streaming video, but
they are also used in the disconnect function. So just init them
always during probe time.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: fix standards for S-Video/Composite inputs</title>
<updated>2015-08-11T09:55:00Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94384014f6ef8091bf31b68721761e68f77ad214'/>
<id>urn:sha1:94384014f6ef8091bf31b68721761e68f77ad214</id>
<content type='text'>
The standards supported by S-Video and Composite inputs are not
limited by PAL, so make it more generic.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: fix DMA from stack warnings</title>
<updated>2015-08-11T09:54:22Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8926e8453476ef3c714d659803068b0f26dd656c'/>
<id>urn:sha1:8926e8453476ef3c714d659803068b0f26dd656c</id>
<content type='text'>
In various places the stack was used to provide buffers for USB data, but
this should be allocated memory.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: fix locking error</title>
<updated>2015-08-11T09:53:21Z</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=e2c84ccb0fbe5e524d15bb09c042a6ca634adaed'/>
<id>urn:sha1:e2c84ccb0fbe5e524d15bb09c042a6ca634adaed</id>
<content type='text'>
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;
</content>
</entry>
<entry>
<title>[media] usbvision: set field and colorspace</title>
<updated>2015-08-11T09:53:01Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4eeda6faaec4b11e3738ba3ad533d440f628faca'/>
<id>urn:sha1:4eeda6faaec4b11e3738ba3ad533d440f628faca</id>
<content type='text'>
Set the colorspace and field in vidioc_try_fmt_vid_cap().

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: frequency fixes</title>
<updated>2015-08-11T09:52:31Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-07-20T12:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64d416ec965360734beb295fe43c24f36ab465ca'/>
<id>urn:sha1:64d416ec965360734beb295fe43c24f36ab465ca</id>
<content type='text'>
- setup initial radio and tv frequencies.
- set/get the correct frequency (radio vs tv).
- disable tuner/freq ioctls if there is no tuner.
- fix some tuner index checks.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
