OSDN Git Service

Revert "android: binder: Sanity check at binder ioctl"
authorTodd Kjos <tkjos@android.com>
Wed, 5 Jul 2017 20:46:01 +0000 (13:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2017 08:21:52 +0000 (10:21 +0200)
commiteda70a559187ebc33b8019a50bcc4077030f2ed3
tree8599e5af11a7244595b2c01218285a16f21d1b9f
parent242cea2d666f9e9a61513f8d96d549122589daca
Revert "android: binder: Sanity check at binder ioctl"

commit a2b18708ee14baec4ef9c0fba96070bba14d0081 upstream.

This reverts commit a906d6931f3ccaf7de805643190765ddd7378e27.

The patch introduced a race in the binder driver. An attempt to fix the
race was submitted in "[PATCH v2] android: binder: fix dangling pointer
comparison", however the conclusion in the discussion for that patch
was that the original patch should be reverted.

The reversion is being done as part of the fine-grained locking
patchset since the patch would need to be refactored when
proc->vmm_vm_mm is removed from struct binder_proc and added
in the binder allocator.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c