ANDROID: binder: prevent transactions into own process.
commitfd0485e2cc7b5f69889dca223b2c9f7cba6e91f4
authorMartijn Coenen <maco@android.com>
Wed, 28 Mar 2018 09:14:50 +0000 (28 11:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 19:58:20 +0000 (1 12:58 -0700)
tree5a2005795351c29fa8c24b5edd6ded0b29eea767
parentbddabeb71f3fc2577d7576251507f36320cecdb1
ANDROID: binder: prevent transactions into own process.

commit 7aa135fcf26377f92dc0680a57566b4c7f3e281b upstream.

This can't happen with normal nodes (because you can't get a ref
to a node you own), but it could happen with the context manager;
to make the behavior consistent with regular nodes, reject
transactions into the context manager by the process owning it.

Reported-by: syzbot+09e05aba06723a94d43d@syzkaller.appspotmail.com
Signed-off-by: Martijn Coenen <maco@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c