• Todd Kjos's avatar
    Revert "android: binder: Sanity check at binder ioctl" · a2b18708
    Todd Kjos authored
    This reverts commit a906d693.
    
    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: default avatarTodd Kjos <tkjos@google.com>
    Cc: stable <stable@vger.kernel.org> # 4.6+
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    a2b18708
binder.c 119 KB