linux_dsm_epyc7002/drivers/media/video/omap
Vaibhav Hiremath 383e4f6987 [media] omap_vout: Added check in reqbuf & mmap for buf_size allocation
The usecase where, user allocates small size of buffer
through bootargs (video1_bufsize/video2_bufsize) and later from application
tries to set the format which requires larger buffer size, driver doesn't
check for insufficient buffer size and allows application to map extra buffer.
This leads to kernel crash, when user application tries to access memory
beyond the allocation size.

Added check in both mmap and reqbuf call back function,
and return error if the size of the buffer allocated by user through
bootargs is less than the S_FMT size.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-01 15:47:53 -03:00
..
Kconfig V4L/DVB: OMAP_VOUT: fix: Replaced dma-sg with dma-contig 2010-07-08 16:49:37 -03:00
Makefile V4L/DVB: OMAP_VOUT: fix: Module params were not working through bootargs 2010-07-08 16:49:48 -03:00
omap_vout.c [media] omap_vout: Added check in reqbuf & mmap for buf_size allocation 2011-07-01 15:47:53 -03:00
omap_voutdef.h OMAP: DSS2: Move display.h to include/video/ 2011-05-11 14:05:07 +03:00
omap_voutlib.c [media] OMAP_VOUTLIB: Fix wrong resizer calculation 2011-07-01 15:46:24 -03:00
omap_voutlib.h V4L/DVB: V4L2: Add support for OMAP2/3 V4L2 display driver on top of DSS2 2010-05-19 12:58:10 -03:00