Message ID | 1453173762-130234-1-git-send-email-puck.chen@hisilicon.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index a39e85f..3a74c5d 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -2736,6 +2736,8 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) /*pr_info("binder_ioctl: %d:%d %x %lx\n", proc->pid, current->pid, cmd, arg);*/ + if (unlikely(proc->tsk->mm != current->tsk->mm && proc->tsk->mm)) + return -EINVAL; trace_binder_ioctl(cmd, arg);