UPSTREAM: binder: fix handling of misaligned binder object
authorTodd Kjos <tkjos@android.com>
Thu, 14 Feb 2019 23:22:57 +0000 (15:22 -0800)
committerTodd Kjos <tkjos@google.com>
Mon, 25 Mar 2019 22:19:46 +0000 (15:19 -0700)
commitd8382216065b71035f7f8e274c6cdbe7c9f828e1
tree52dfdddda184f27ee71ce94d5fdac39d9bad4f41
parent91bfaa07a2897825be8b5c2004abac596767f5d8
UPSTREAM: binder: fix handling of misaligned binder object

Fixes crash found by syzbot:
kernel BUG at drivers/android/binder_alloc.c:LINE! (2)

(cherry pick from commit 26528be6720bb40bc8844e97ee73a37e530e9c5e)
Bug: 67668716
Reported-and-tested-by: syzbot+55de1eb4975dec156d8f@syzkaller.appspotmail.com
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ib8597dd05a158f78503d4affe6c5f46ded16a811
drivers/android/binder.c