linux_dsm_epyc7002/drivers/media/pci
Arnd Bergmann db317a3722 media: subdev: disallow ioctl for saa6588/davinci
commit 0a7790be182d32b9b332a37cb4206e24fe94b728 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
..
b2c2
bt8xx media: subdev: disallow ioctl for saa6588/davinci 2021-07-19 09:45:02 +02:00
cobalt media: cobalt: fix race condition in setting HPD 2021-07-14 16:55:51 +02:00
cx18 media: cx18: Replace http links with https ones 2020-07-19 14:00:32 +02:00
cx88 media: pci: fix common ALSA DMA-mapping related codes 2020-09-26 10:34:44 +02:00
cx23885 media: cx23885: add more quirks for reset DMA on some AMD IOMMU 2021-03-11 14:17:24 +01:00
cx25821 media: cx25821: Fix a bug when reallocating some dma memory 2021-03-04 11:37:43 +01:00
ddbridge treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dm1105
dt3155 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
intel media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev 2021-07-14 16:56:11 +02:00
ivtv media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
mantis media: mantis: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:19 +02:00
meye treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
netup_unidvb media: netup_unidvb: Don't leak SPI master in probe error path 2020-12-30 11:54:04 +01:00
ngene media: ngene: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:47 +02:00
pluto2
pt1
pt3
saa7134 media: subdev: disallow ioctl for saa6588/davinci 2021-07-19 09:45:02 +02:00
saa7146 media: saa7146: fix array overflow in vidioc_s_audio() 2020-12-30 11:53:31 +01:00
saa7164 media: media/saa7164: fix saa7164_encoder_register() memory leak bugs 2021-05-11 14:47:24 +02:00
smipcie media: smipcie: fix interrupt handling and IR timeout 2021-03-04 11:38:34 +01:00
solo6x10 media: solo6x10: fix missing snd_card_free in error handling case 2020-12-30 11:53:13 +01:00
sta2x11 media: drivers: media: pci: sta2x11: fix Kconfig dependency on GPIOLIB 2021-05-11 14:47:24 +02:00
ttpci media: av7110: don't do float point math 2020-09-12 09:39:37 +02:00
tw68 media: tw68: use generic power management 2020-07-19 14:24:57 +02:00
tw686x
tw5864 media: tw5864: check status of tw5864_frameinterval_get 2020-08-29 08:16:16 +02:00
Kconfig
Makefile