linux/drivers/dma-buf/heaps
Dmitry Osipenko 27f3733a10 dma-buf/heaps: 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: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221110201349.351294-5-dmitry.osipenko@collabora.com
2022-11-11 23:49:51 +03:00
..
cma_heap.c dma-buf/heaps: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:51 +03:00
Kconfig dma-buf: heaps: Add CMA heap to dmabuf heaps 2019-12-11 11:13:37 +05:30
Makefile dma-buf: heaps: Remove heap-helpers code 2020-11-22 22:03:03 +05:30
system_heap.c dma-buf/heaps: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:51 +03:00