ANDROID: binder: synchronize_rcu() when using POLLFREE.
authorMartijn Coenen <maco@android.com>
Fri, 16 Feb 2018 08:47:15 +0000 (09:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:07:52 +0000 (11:07 +0100)
commit441b5d10e4602b25ad960d1ca1c6bb77e788c220
tree9d6806de9fe80cf0ae54edf1ce1ead721bbf9e3e
parent129926c3756ac93c19608f8065d9654a99006fbf
ANDROID: binder: synchronize_rcu() when using POLLFREE.

commit 5eeb2ca02a2f6084fc57ae5c244a38baab07033a upstream.

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>
drivers/android/binder.c