linux/drivers/media/common/videobuf2
Dmitry Osipenko 3a6ca1810f media: videobuf2: Assert held reservation lock for dma-buf mmapping
When userspace mmaps dma-buf's fd, the dma-buf reservation lock must be
held. Add locking sanity checks to the dma-buf mmaping callbacks to ensure
that the locking assumptions won't regress in the future.

Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Acked-by: Tomasz Figa <tfiga@chromium.org>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221110201349.351294-6-dmitry.osipenko@collabora.com
2022-11-11 23:49:53 +03:00
..
frame_vector.c media: vb2: frame_vector.c: don't overwrite error code 2021-11-30 12:07:36 +01:00
Kconfig media: videobuf2: Move frame_vector into media subsystem 2021-01-12 14:15:31 +01:00
Makefile media: Makefiles: sort entries where it fits 2022-03-14 09:42:59 +01:00
vb2-trace.c
videobuf2-core.c media: vb2: videobuf -> videobuf2 2022-08-29 15:38:09 +02:00
videobuf2-dma-contig.c media: videobuf2: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:53 +03:00
videobuf2-dma-sg.c media: videobuf2: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:53 +03:00
videobuf2-dvb.c media: vb2: videobuf -> videobuf2 2022-08-29 15:38:09 +02:00
videobuf2-memops.c mm/frame-vector: Use FOLL_LONGTERM 2021-01-12 14:15:17 +01:00
videobuf2-v4l2.c media: videobuf2: Remove vb2_find_timestamp() 2022-08-30 14:44:45 +02:00
videobuf2-vmalloc.c media: videobuf2: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:53 +03:00