]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 17 Jul 2017 12:44:19 +0000 (14:44 +0200)
commit1ff4cf16653f18b2f384cae4219fd35388d4b193
tree7dc7480befed459daefbaba05ddc05df8e8fe459
parentc1e7f93cfc9ccbe5772b8d0eb3da04ab3bcc7881
Revert "android: binder: Sanity check at binder ioctl"

This reverts commit d69a1ecd8d93677c0436957dcdd408be6b2a2f25.

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>
Cc: stable <stable@vger.kernel.org> # 4.6+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c