linux/drivers/media/platform
Arnd Bergmann db317a3722 media: subdev: disallow ioctl for saa6588/davinci
commit 0a7790be18 upstream.

The saa6588_ioctl() function expects to get called from other kernel
functions with a 'saa6588_command' pointer, but I found nothing stops it
from getting called from user space instead, which seems rather dangerous.

The same thing happens in the davinci vpbe driver with its VENC_GET_FLD
command.

As a quick fix, add a separate .command() callback pointer for this
driver and change the two callers over to that.  This change can easily
get backported to stable kernels if necessary, but since there are only
two drivers, we may want to eventually replace this with a set of more
specialized callbacks in the long run.

Fixes: c3fda7f835 ("V4L/DVB (10537): saa6588: convert to v4l2_subdev.")
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-19 09:45:02 +02:00
..
am437x media: am437x: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:48 +02:00
atmel media: atmel: atmel-isc: rework component offsets 2020-07-19 07:55:39 +02:00
cadence
coda media: coda: Fix runtime PM imbalance in coda_probe 2020-09-27 10:51:14 +02:00
davinci media: subdev: disallow ioctl for saa6588/davinci 2021-07-19 09:45:02 +02:00
exynos-gsc media: exynos-gsc: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
exynos4-is media: exynos4-is: remove a now unused integer 2021-07-14 16:56:54 +02:00
marvell-ccic media: marvel-ccic: fix some issues when getting pm_runtime 2021-07-14 16:55:48 +02:00
mtk-jpeg media: platform: add missing put_device() call in mtk_jpeg_probe() and mtk_jpeg_remove() 2020-12-30 11:53:12 +01:00
mtk-mdp media: mdk-mdp: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:48 +02:00
mtk-vcodec media: mtk-vcodec: fix PM runtime get logic 2021-07-14 16:55:49 +02:00
mtk-vpu media: mtk-vpu: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
omap
omap3isp media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev 2021-07-14 16:56:11 +02:00
qcom media: venus: Rework error fail recover logic 2021-07-14 16:56:02 +02:00
rcar-vin media: rcar-vin: rcar-dma: Fix setting VNIS_REG for RAW8 formats 2020-10-08 09:09:37 +02:00
rockchip/rga media: rockchip/rga: Fix a reference count leak. 2020-09-27 10:52:34 +02:00
s3c-camif media: platform: s3c-camif: Fix runtime PM imbalance on error 2020-09-27 10:50:56 +02:00
s5p-g2d media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx 2021-07-14 16:56:07 +02:00
s5p-jpeg media: s5p-jpeg: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
s5p-mfc media: platform: s5p-mfc: Fix adding a standard frame skip mode control 2020-10-01 09:27:47 +02:00
sti media: st-hva: Fix potential NULL pointer dereferences 2021-07-14 16:55:53 +02:00
stm32 media: stm32-dcmi: Fix a reference count leak 2020-09-27 10:53:52 +02:00
sunxi media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev 2021-07-14 16:56:11 +02:00
ti-vpe media: ti-vpe: cal: fix write to unallocated memory 2021-03-04 11:37:41 +01:00
vsp1 media: v4l: vsp1: Fix bru null pointer access 2021-03-17 17:06:20 +01:00
xilinx media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
aspeed-video.c media: aspeed: fix clock handling logic 2021-05-14 09:50:23 +02:00
fsl-viu.c media: fsl-viu: Do not redefine out_be32()/in_be32() for CONFIG_M68K 2020-08-29 08:07:48 +02:00
imx-pxp.c
imx-pxp.h
Kconfig media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
m2m-deinterlace.c
Makefile
mx2_emmaprp.c media: mx2_emmaprp: Fix memleak in emmaprp_probe 2020-09-26 10:15:39 +02:00
pxa_camera.c media: pxa_camera: declare variable when DEBUG is defined 2021-03-04 11:37:43 +01:00
rcar_drif.c Revert "media: rcar_drif: fix a memory disclosure" 2021-05-26 12:06:55 +02:00
rcar_fdp1.c
rcar_jpu.c media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
rcar-fcp.c media: platform: fcp: Fix a reference count leak. 2020-09-27 10:52:52 +02:00
renesas-ceu.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
sh_vou.c media: sh_vou: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
via-camera.c
via-camera.h
video-mux.c media: video-mux: Skip dangling endpoints 2021-07-14 16:56:11 +02:00