linux/drivers/media/common/videobuf2
Marek Szyprowski 27afd6e066 media: videobuf2: forbid remove_bufs when legacy fileio is active
vb2_ioctl_remove_bufs() call manipulates queue internal buffer list,
potentially overwriting some pointers used by the legacy fileio access
mode. Forbid that ioctl when fileio is active to protect internal queue
state between subsequent read/write calls.

CC: stable@vger.kernel.org
Fixes: a3293a8538 ("media: v4l2: Add REMOVE_BUFS ioctl")
Reported-by: Shuangpeng Bai <SJB7183@psu.edu>
Closes: https://lore.kernel.org/linux-media/5317B590-AAB4-4F17-8EA1-621965886D49@psu.edu/
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2025-10-24 11:16:26 +02:00
..
Kconfig
Makefile
frame_vector.c
vb2-trace.c
videobuf2-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
videobuf2-dma-contig.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
videobuf2-dma-sg.c media: videobuf2: use sgtable-based scatterlist wrappers 2025-05-09 11:55:07 +02:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-v4l2.c media: videobuf2: forbid remove_bufs when legacy fileio is active 2025-10-24 11:16:26 +02:00
videobuf2-vmalloc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00