linux/drivers/media/usb/uvc
Hans Verkuil f45f3f753b media: v4l2-ctrls.c/uvc: zero v4l2_event
Control events can leak kernel memory since they do not fully zero the
event. The same code is present in both v4l2-ctrls.c and uvc_ctrl.c, so
fix both.

It appears that all other event code is properly zeroing the structure,
it's these two places.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: syzbot+4f021cf3697781dbd9fb@syzkaller.appspotmail.com
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-16 11:22:39 -05:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: v4l2-ctrls.c/uvc: zero v4l2_event 2019-01-16 11:22:39 -05:00
uvc_debugfs.c media: uvcvideo: Remove unnecessary NULL check before debugfs_remove_recursive 2018-09-11 08:42:10 -04:00
uvc_driver.c media: uvcvideo: Move decode processing to process context 2018-12-05 03:16:48 -05:00
uvc_entity.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
uvc_isight.c media: uvcvideo: Convert decode functions to use new context structure 2018-12-05 03:07:41 -05:00
uvc_metadata.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
uvc_queue.c media: uvcvideo: Split uvc_video_enable into two 2018-12-05 03:17:34 -05:00
uvc_status.c media: uvcvideo: Refactor teardown of uvc on USB disconnect 2018-12-03 14:16:02 -05:00
uvc_v4l2.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
uvc_video.c media: uvcvideo: Utilise for_each_uvc_urb iterator 2018-12-05 03:18:46 -05:00
uvcvideo.h media: uvcvideo: Utilise for_each_uvc_urb iterator 2018-12-05 03:18:46 -05:00