]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:24:17 +0000 (12:24 +0200)
commitd01de60405f812a7026efb503cb8c00cfa6776d5
tree248afdca8b2df9c087c63d205f2ac286edab67ed
parent6b9f39713c0183919c0830202c2c26ac98fa75fc
ANDROID: binder: prevent transactions into own process.

BugLink: http://bugs.launchpad.net/bugs/1778265
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/android/binder.c