binder: protect binder_ref with outer lock
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:02:08 +0000 (12:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:24 +0000 (14:48 +0200)
commit2c1838dc6817dd28cf24ba0c57cc8693be9bbfc5
tree4c231a1b44cd8808867d112dced8c650ea0d906f
parentb3e6861283790d78f298f2a1bc3ef5fd81b381f4
binder: protect binder_ref with outer lock

Use proc->outer_lock to protect the binder_ref structure.
The outer lock allows functions operating on the binder_ref
to do nested acquires of node and inner locks as necessary
to attach refs to nodes atomically.

Binder refs must never be accesssed without holding the
outer lock.

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