FROMLIST: binder: protect against two threads freeing buffer
authorTodd Kjos <tkjos@google.com>
Fri, 21 Apr 2017 21:32:11 +0000 (14:32 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:20 +0000 (08:34 -0700)
commit076072a197e07b9044c1858329061156ffb18a9c
treee773f5d91960ab9ab85dba362b9baffd6ee8a13c
parent4cbe57579bc32695afe9735e226587757df8119f
FROMLIST: binder: protect against two threads freeing buffer

(from https://patchwork.kernel.org/patch/9817815/)

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

Change-Id: I9461229401aaa7f3b5b2477960f79d4d1bd17fee
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h [new file with mode: 0644]