android: binder: Sanity check at binder ioctl
Sanity check at binder ioctl function, Only allow the shared mm_struct to use the same binder-object to do binder operate. And add proc->vma_vm_mm = current->mm at the open function. The libbinder do ioctl before mmap called. V2: Fix compile error for error commit V3: Change the condition to proc->vma_vm_mm Signed-off-by: NChen Feng <puck.chen@hisilicon.com> Signed-off-by: NWei Dong <weidong2@hisilicon.com> Signed-off-by: NJunmin Zhao <zhaojunmin@huawei.com> Reviewed-by: NZhuangluan Su <suzhuangluan@hisilicon.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录