<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/vivid, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-05-31T13:44:48Z</updated>
<entry>
<title>media: vivid: use vfree() instead of kfree() for dev-&gt;bitmap_cap</title>
<updated>2019-05-31T13:44:48Z</updated>
<author>
<name>Alexander Potapenko</name>
</author>
<published>2019-04-04T14:56:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=833368fcdb4786d14c83cbac2e8c7d679f12e6d3'/>
<id>urn:sha1:833368fcdb4786d14c83cbac2e8c7d679f12e6d3</id>
<content type='text'>
commit dad7e270ba712ba1c99cd2d91018af6044447a06 upstream.

syzkaller reported crashes on kfree() called from
vivid_vid_cap_s_selection(). This looks like a simple typo, as
dev-&gt;bitmap_cap is allocated with vzalloc() throughout the file.

Fixes: ef834f7836ec0 ("[media] vivid: add the video capture and output
parts")

Signed-off-by: Alexander Potapenko &lt;glider@google.com&gt;
Reported-by: Syzbot &lt;syzbot+6c0effb5877f6b0344e2@syzkaller.appspotmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Merge tag 'v4.20-rc7' into patchwork</title>
<updated>2018-12-17T15:34:24Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2018-12-17T15:34:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4bd257d884902b81493cf11531915009ab5787cf'/>
<id>urn:sha1:4bd257d884902b81493cf11531915009ab5787cf</id>
<content type='text'>
Linux 4.20-rc7

* tag 'v4.20-rc7': (403 commits)
  Linux 4.20-rc7
  scripts/spdxcheck.py: always open files in binary mode
  checkstack.pl: fix for aarch64
  userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registered
  fs/iomap.c: get/put the page in iomap_page_create/release()
  hugetlbfs: call VM_BUG_ON_PAGE earlier in free_huge_page()
  memblock: annotate memblock_is_reserved() with __init_memblock
  psi: fix reference to kernel commandline enable
  arch/sh/include/asm/io.h: provide prototypes for PCI I/O mapping in asm/io.h
  mm/sparse: add common helper to mark all memblocks present
  mm: introduce common STRUCT_PAGE_MAX_SHIFT define
  alpha: fix hang caused by the bootmem removal
  XArray: Fix xa_alloc when id exceeds max
  drm/vmwgfx: Protect from excessive execbuf kernel memory allocations v3
  MAINTAINERS: Daniel for drm co-maintainer
  drm/amdgpu: drop fclk/gfxclk ratio setting
  IB/core: Fix oops in netdev_next_upper_dev_rcu()
  dm thin: bump target version
  drm/vmwgfx: remove redundant return ret statement
  drm/i915: Flush GPU relocs harder for gen3
  ...
</content>
</entry>
<entry>
<title>media: vivid: Improve timestamping</title>
<updated>2018-12-07T13:30:33Z</updated>
<author>
<name>Gabriel Francisco Mandaji</name>
</author>
<published>2018-12-02T13:45:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=be7e3c3684e0790a84d25b3a7b70b434342e1cc3'/>
<id>urn:sha1:be7e3c3684e0790a84d25b3a7b70b434342e1cc3</id>
<content type='text'>
Simulate a more precise timestamp by calculating it based on the
current framerate.

Signed-off-by: Gabriel Francisco Mandaji &lt;gfmandaji@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
[hverkuil-cisco@xs4all.nl: replaced division by 2 with bit shift]
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: drop v4l2_ctrl_request_complete() from start_streaming</title>
<updated>2018-12-03T20:04:07Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-11-28T08:37:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e714c92f42aeed6052a287b8ccf5a519e42bab15'/>
<id>urn:sha1:e714c92f42aeed6052a287b8ccf5a519e42bab15</id>
<content type='text'>
If start_streaming() fails and all queued buffers are returned to
vb2, then do not call v4l2_ctrl_request_complete(). Nothing happened
to the request and the state should remain as it was before
start_streaming was called.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: add req_validate error injection</title>
<updated>2018-12-03T19:44:31Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-11-28T09:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4b3675f9b838c0dc6ef680010233ba5dbebb26d'/>
<id>urn:sha1:a4b3675f9b838c0dc6ef680010233ba5dbebb26d</id>
<content type='text'>
Add a new vivid button control to inject an error into the
req_validate request callback.

This will help testing with v4l2-compliance.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: fix smatch warnings</title>
<updated>2018-12-03T19:30:27Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-11-23T12:07:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adcfdbde20dc149084978d4c9efa0a106e73f17e'/>
<id>urn:sha1:adcfdbde20dc149084978d4c9efa0a106e73f17e</id>
<content type='text'>
Reorganize code to fix two smatch warnings:

drivers/media/platform/vivid/vivid-core.c: drivers/media/platform/vivid/vivid-core.c:889 vivid_create_instance() warn: potentially one past the end of array
'dev-&gt;query_dv_timings_qmenu[dev-&gt;query_dv_timings_size]'
drivers/media/platform/vivid/vivid-core.c: drivers/media/platform/vivid/vivid-core.c:889 vivid_create_instance() warn: potentially one past the end of array
'dev-&gt;query_dv_timings_qmenu[dev-&gt;query_dv_timings_size]'

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: free bitmap_cap when updating std/timings/etc.</title>
<updated>2018-11-23T11:23:40Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-11-09T13:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=560ccb75c2caa6b1039dec1a53cd2ef526f5bf03'/>
<id>urn:sha1:560ccb75c2caa6b1039dec1a53cd2ef526f5bf03</id>
<content type='text'>
When vivid_update_format_cap() is called it should free any overlay
bitmap since the compose size will change.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com
Cc: &lt;stable@vger.kernel.org&gt;      # for v3.18 and up
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: fill in media_device bus_info</title>
<updated>2018-11-23T11:07:36Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-11-06T14:06:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e10b40f3304360d3a2d07d690ff12197f828f2c8'/>
<id>urn:sha1:e10b40f3304360d3a2d07d690ff12197f828f2c8</id>
<content type='text'>
If you create multiple vivid instances, each with their own media
device, then there was no way to tell them apart.

Fill in the bus_info so each instance has a unique bus_info string.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: set min width/height to a value &gt; 0</title>
<updated>2018-11-23T11:06:42Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-10-29T17:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9729d6d282a6d7ce88e64c9119cecdf79edf4e88'/>
<id>urn:sha1:9729d6d282a6d7ce88e64c9119cecdf79edf4e88</id>
<content type='text'>
The capture DV timings capabilities allowed for a minimum width and
height of 0. So passing a timings struct with 0 values is allowed
and will later cause a division by zero.

Ensure that the width and height must be &gt;= 16 to avoid this.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: fix error handling of kthread_run</title>
<updated>2018-11-23T11:06:03Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2018-10-29T10:15:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=701f49bc028edb19ffccd101997dd84f0d71e279'/>
<id>urn:sha1:701f49bc028edb19ffccd101997dd84f0d71e279</id>
<content type='text'>
kthread_run returns an error pointer, but elsewhere in the code
dev-&gt;kthread_vid_cap/out is checked against NULL.

If kthread_run returns an error, then set the pointer to NULL.

I chose this method over changing all kthread_vid_cap/out tests
elsewhere since this is more robust.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reported-by: syzbot+53d5b2df0d9744411e2e@syzkaller.appspotmail.com
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
</feed>
