]> git.baikalelectronics.ru Git - kernel.git/commit
ANDROID: binder: prevent transactions into own process.
authorMartijn Coenen <maco@android.com>
Wed, 28 Mar 2018 09:14:50 +0000 (11:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 10:12:41 +0000 (12:12 +0200)
commitcd2e49c1a78ed684f47ffb784dd0f83e7bff6dec
tree03d642314fa0c13efe0de04776920dec66e780a1
parent973749235e9a82e6427f10ff5051544290b05216
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>
drivers/android/binder.c