UPSTREAM: ANDROID: binder: synchronize_rcu() when using POLLFREE.
authorMartijn Coenen <maco@android.com>
Fri, 16 Feb 2018 08:47:15 +0000 (09:47 +0100)
committerJan Altensen <info@stricted.net>
Tue, 15 Oct 2019 12:36:06 +0000 (08:36 -0400)
commitcb3ceb395f5ad9fd67fea1716a64cbfaf7783414
tree67397323869db9ab16deb49585ab85c68ad9e1b2
parent382c90f53b40f358647e6ef26472545a30e90a5d
UPSTREAM: ANDROID: binder: synchronize_rcu() when using POLLFREE.

To prevent races with ep_remove_waitqueue() removing the
waitqueue at the same time.

Reported-by: syzbot+a2a3c4909716e271487e@syzkaller.appspotmail.com
Signed-off-by: Martijn Coenen <maco@android.com>
Cc: stable <stable@vger.kernel.org> # 4.14+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5eeb2ca02a2f6084fc57ae5c244a38baab07033a)

Change-Id: Ia0089448079c78d0ab0b57303faf838e9e5ee797
drivers/android/binder.c