commit | 2dfe49da487cf92b45083deb38e37062a5b8f83e | [log] [tgz] |
---|---|---|
author | Ben Hutchings <ben@decadent.org.uk> | Sun Feb 04 02:06:27 2018 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Feb 25 11:05:44 2018 +0100 |
tree | afc6e32819af6113a066ed0a9e08e0186a60a7d1 | |
parent | fedae0f64845933a0f28604a09be2e0323d66236 [diff] |
staging: android: ashmem: Fix a race condition in pin ioctls commit ce8a3a9e76d0193e2e8d74a06d275b3c324ca652 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>