linux/drivers/staging
Viktor Slavkovic b4106c55b5 staging: android: ashmem: fix a race condition in ASHMEM_SET_SIZE ioctl
commit 443064cb0b upstream.

A lock-unlock is missing in ASHMEM_SET_SIZE ioctl which can result in a
race condition when mmap is called. After the !asma->file check, before
setting asma->size, asma->file can be set in mmap. That would result in
having different asma->size than the mapped memory size. Combined with
ASHMEM_UNPIN ioctl and shrinker invocation, this can result in memory
corruption.

Signed-off-by: Viktor Slavkovic <viktors@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-17 09:35:32 +01:00
..
android staging: android: ashmem: fix a race condition in ASHMEM_SET_SIZE ioctl 2018-01-17 09:35:32 +01:00
board
clocking-wizard
comedi Staging: comedi: comedi_fops: Avoid orphaned proc entry 2017-08-06 19:19:40 -07:00
dgap
dgnc
emxx_udc staging: emxx_udc: remove incorrect __init annotations 2017-05-14 13:32:58 +02:00
fbtft Staging: fbtft: Fix bug in fbtft-core 2016-10-07 15:23:47 +02:00
fsl-mc
fwserial
gdm72xx
gdm724x staging: gdm724x: gdm_mux: fix use-after-free on module unload 2017-05-20 14:26:59 +02:00
goldfish
gs_fpgaboot
iio staging: iio: cdc: fix improper return value 2017-11-30 08:37:27 +00:00
lustre mm: avoid returning VM_FAULT_RETRY from ->page_mkwrite handlers 2017-12-09 18:42:43 +01:00
media
most
mt29f_spinand
netlogic
nvec staging: nvec: remove managed resource from PS2 driver 2016-11-18 10:48:35 +01:00
octeon
octeon-usb
olpc_dcon
panel misc: panel: properly restore atomic counter on error path 2017-11-18 11:11:07 +01:00
rdma IB/ehca: fix maybe-uninitialized warnings 2017-05-08 07:46:02 +02:00
rtl8188eu staging: rtl8188eu: fix incorrect ERROR tags from logs 2017-11-21 09:21:20 +01:00
rtl8192e staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory. 2017-06-17 06:39:35 +02:00
rtl8192u
rtl8712 staging: rtl8712: fixed little endian problem 2017-11-21 09:21:22 +01:00
rtl8723au
rts5208 staging/rts5208: fix incorrect shift to extract upper nybble 2017-09-13 14:09:44 -07:00
skein
slicoss
sm750fb
speakup
ste_rmi4
unisys
vme
vt6655 vt6655: Fix a possible sleep-in-atomic bug in vt6655_suspend 2017-12-20 10:05:01 +01:00
vt6656 staging: vt6556: vnt_start Fix missing call to vnt_key_init_table. 2017-07-15 11:57:49 +02:00
wilc1000
wlan-ng staging: wlan-ng: add missing byte order conversion 2017-05-14 13:32:57 +02:00
xgifb
Kconfig
Makefile
staging.c