linux/drivers/media/platform
Laurent Pinchart b6ee3f0dcf media: v4l: async: Move async subdev notifier operations to a separate structure
The async subdev notifier .bound(), .unbind() and .complete() operations
are function pointers stored directly in the v4l2_async_subdev
structure. As the structure isn't immutable, this creates a potential
security risk as the function pointers are mutable.

To fix this, move the function pointers to a new
v4l2_async_subdev_operations structure that can be made const in
drivers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-10-31 13:51:45 -04:00
..
am437x media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
atmel media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
blackfin media: drivers: delete error messages for failed memory allocation 2017-09-23 08:19:55 -04:00
cec-gpio [media] cec-gpio: don't generate spurious HPD events 2017-10-04 17:04:18 -03:00
coda media: coda: Handle return value of kasprintf 2017-10-27 14:09:39 +02:00
davinci media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
exynos4-is media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
exynos-gsc media: exynos-gsc: Add hardware rotation limits 2017-10-16 16:49:09 -07:00
marvell-ccic media: platform: make video_device const 2017-08-27 08:44:30 -04:00
meson media: platform: Add Amlogic Meson AO CEC Controller driver 2017-08-09 10:45:26 -04:00
mtk-jpeg media: vcodec: mediatek: constify v4l2_m2m_ops structures 2017-08-20 08:03:55 -04:00
mtk-mdp media: mtk-mdp: use IS_ERR to check return value of of_clk_get 2017-08-20 08:20:42 -04:00
mtk-vcodec media: mtk-vcodec: fix vp9 decode error 2017-08-08 06:26:48 -04:00
mtk-vpu IOMMU Updates for Linux v4.12 2017-05-09 15:15:47 -07:00
omap media: omap_vout: Fix a possible null pointer dereference in omap_vout_open() 2017-10-31 06:37:22 -04:00
omap3isp media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
qcom media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rcar-vin media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rockchip/rga media: rockchip/rga: annotate PM functions as __maybe_unused 2017-10-31 07:21:56 -04:00
s3c-camif media: s3c-camif: don't set driver_version 2017-08-08 06:00:26 -04:00
s5p-cec media: s5p-cec: add NACK detection support 2017-09-23 07:29:30 -04:00
s5p-g2d media: platform: make video_device const 2017-08-27 08:44:30 -04:00
s5p-jpeg media: s5p-jpeg: directly use parsed subsampling on exynos5433 2017-08-20 08:02:21 -04:00
s5p-mfc media: s5p-mfc: Adjust a null pointer check in four functions 2017-10-16 16:51:11 -07:00
soc_camera media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
sti media: st-hva: hva-h264: use swap macro in hva_h264_encode 2017-10-31 07:30:21 -04:00
stm32 media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
tegra-cec media: tegra-cec: fix messy probe() cleanup 2017-10-31 07:23:52 -04:00
ti-vpe media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
vimc media: vimc: Fix return value check in vimc_add_subdevs() 2017-10-27 14:00:11 +02:00
vivid [media] vivid: add support for Y10 and Y12 2017-10-04 16:59:07 -03:00
vsp1 media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
xilinx media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
arv.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
fsl-viu.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
Kconfig media: tegra-cec: add Tegra HDMI CEC driver 2017-10-27 15:48:57 +02:00
m2m-deinterlace.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
Makefile media: tegra-cec: add Tegra HDMI CEC driver 2017-10-27 15:48:57 +02:00
mx2_emmaprp.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
pxa_camera.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rcar_drif.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
rcar_fdp1.c media: rcar_fdp1: constify vb2_ops structure 2017-07-19 15:03:55 -04:00
rcar_jpu.c media: V4L2: platform: rcar_jpu: constify v4l2_m2m_ops structures 2017-08-20 08:03:51 -04:00
rcar-fcp.c v4l: rcar-fcp: Add an API to retrieve the FCP device 2017-06-09 12:25:36 +01:00
sh_veu.c
sh_vou.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
via-camera.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
via-camera.h
video-mux.c media: platform: video-mux: convert to multiplexer framework 2017-07-20 06:59:25 -04:00
vim2m.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00