linux/drivers/media
Laurent Pinchart 8a90f1a61c [media] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
implementation of the mmap() and get_unmapped_area() file operations
that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
associated with the video device. Neither the
vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
lock, leading to race conditions between mmap/get_unmapped_area and
other buffer-related ioctls such as VIDIOC_REQBUFS.
Fix it by taking the queue or device lock around the vb2_mmap() and
vb2_get_unmapped_area() calls.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-08-18 07:22:07 -03:00
..
common [media] tveeprom: remove v4l2-chip-ident.h include 2013-06-17 08:48:03 -03:00
dvb-core [media] dib0700: add support for PCTV 2002e & PCTV 2002e SE 2013-07-22 07:48:11 -03:00
dvb-frontends Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-07-13 12:09:57 -07:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c [media] ml86v7667: override default field interlace order 2013-07-26 13:30:11 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] cx23885-video: fix two warnings 2013-08-01 14:55:25 -03:00
platform [media] s5p-mfc: Add support for VP8 encoder 2013-08-18 07:14:23 -03:00
radio [media] radio-aztech: Implement signal strength detection and fix stereo detection 2013-07-26 13:34:09 -03:00
rc [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
tuners Merge branch 'v4l_for_linus' into patchwork 2013-06-25 07:25:09 -03:00
usb [media] stk1160: Build as a module if SND is m and audio support is selected 2013-08-01 14:55:25 -03:00
v4l2-core [media] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers 2013-08-18 07:22:07 -03:00
Kconfig [media] Fix build when drivers are builtin and frontend modules 2013-06-20 10:35:53 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add support for circular graph traversal 2013-08-18 07:16:48 -03:00