binder: protect against two threads freeing buffer
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:01:51 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:47:29 +0000 (14:47 +0200)
commit53d311cfa19ad35beba74d706effee02c86d198f
tree669eb2b29fbf3b3c0dd24e8eb16212017eb0f24d
parente4cffcf4bf8b540e150c311e70559d735cc95358
binder: protect against two threads freeing buffer

Adds protection against malicious user code freeing
the same buffer at the same time which could cause
a crash. Cannot happen under normal use.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h