Revert "android: binder: Sanity check at binder ioctl"
authorTodd Kjos <tkjos@google.com>
Tue, 27 Jun 2017 22:18:51 +0000 (15:18 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:18 +0000 (08:34 -0700)
commit5ab9ecc3c6d80a97a6409e10042ee2e74d593dc9
tree878b33d8f2fc38bb612b90564c2d2c96626e5f35
parent598195a90638b749fd013daa903ea0873264b6c5
Revert "android: binder: Sanity check at binder ioctl"

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.

Also needs reversion in 4.9 LTS

Change-Id: I9777ece955c07ac30432187bb968f87cf73271d8
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c