UPSTREAM: ANDROID: binder: prevent transactions into own process.
authorMartijn Coenen <maco@android.com>
Wed, 28 Mar 2018 09:14:50 +0000 (11:14 +0200)
committerDanny Wood <danwood76@gmail.com>
Fri, 8 Nov 2019 12:03:13 +0000 (12:03 +0000)
commita987b61f630d8b93a4a91317364954b520456753
treebcdb426a99ed237b0e29c67e296535936f4480db
parentc0bf025b856adc38e5cabfcd37736e126f7bb593
UPSTREAM: ANDROID: binder: prevent transactions into own process.

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>
(cherry picked from commit 7aa135fcf26377f92dc0680a57566b4c7f3e281b)
Change-Id: I3f6c0528fb2d3f8b835255b2a0ec603cab94626a
drivers/android/binder.c