linux/drivers/staging/android
Ben Hutchings 95f9c2edcb staging: android: ashmem: Fix a race condition in pin ioctls
commit ce8a3a9e76 upstream.

ashmem_pin_unpin() reads asma->file and asma->size before taking the
ashmem_mutex, so it can race with other operations that modify them.

Build-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-02-25 11:07:52 +01:00
..
ion staging: android: ion: Switch from WARN to pr_warn 2018-02-25 11:07:49 +01:00
uapi staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls 2017-06-03 17:38:26 +09:00
ashmem.c staging: android: ashmem: Fix a race condition in pin ioctls 2018-02-25 11:07:52 +01:00
ashmem.h staging: android: Split uapi out of ashmem.h 2014-02-18 11:03:28 -08:00
Kconfig staging, android: remove lowmemory killer from the tree 2017-03-09 13:47:03 +01:00
Makefile staging, android: remove lowmemory killer from the tree 2017-03-09 13:47:03 +01:00
TODO staging/android: Update Ion TODO list 2017-04-18 20:43:14 +02:00