FROMLIST: binder: fix death race conditions
authorMartijn Coenen <maco@google.com>
Mon, 22 May 2017 18:26:23 +0000 (11:26 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 26 Feb 2019 11:36:35 +0000 (11:36 +0000)
commit914f62a00dbb71639ff1885a03192584d1a9edfe
tree365622981f7c036e12f4273cff2cb84e41a09379
parentc2bdc4c41b82eb683702d7d03636cc9cc8398634
FROMLIST: binder: fix death race conditions

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

A race existed where one thread could register
a death notification for a node, while another
thread was cleaning up that node and sending
out death notifications for its references,
causing simultaneous access to ref->death
because different locks were held.

Test: boots, manual testing
Change-Id: Iff73312f34f70374f417beba4c4c82dd33cac119
Signed-off-by: Martijn Coenen <maco@google.com>
drivers/android/binder.c