android_kernel_sony_msm8994/drivers/uio
Sahitya Tummala f90ae4f068
BACKPORT: BACKPORT: uio: fix potential use after free issue when accessing debug_buffer
The variable debug_buffer is a global variable which is allocated
and free'd when open/close is called on debugfs file -
"/sys/kernel/debug/rmt_storage/info". The current code doesn't
have locks to handle concurrent accesses to the above file.
This results into use after free issue when debug_buffer is
accessed by two threads at the same time. Fix this by adding
a mutex lock to protect this global variable.

Change-Id: I6bc3f0ae2d7fca3ca9fe8561612f5863b6c3268a
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Bug: 33845464
2017-09-12 17:59:06 +02:00
..
msm_sharedmem BACKPORT: BACKPORT: uio: fix potential use after free issue when accessing debug_buffer 2017-09-12 17:59:06 +02:00
Kconfig
Makefile uio: msm_sharedmem: Add support for dynamic shared memory allocation 2014-05-08 10:34:11 -07:00
uio_aec.c
uio_cif.c
uio_dmem_genirq.c
uio_netx.c
uio_pci_generic.c
uio_pdrv_genirq.c
uio_pdrv.c
uio_pruss.c
uio_sercos3.c
uio.c Fix a few incorrectly checked [io_]remap_pfn_range() calls 2014-01-28 11:10:06 +05:30