Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678077 > unrolled thread

[PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl"

Started byTodd Kjos <tkjos@android.com>
First post2017-06-29 21:10 +0200
Last post2017-07-03 11:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl" Todd Kjos <tkjos@android.com> - 2017-06-29 21:10 +0200
    Re: [PATCH 01/37] Revert "android: binder: Sanity check at binder  ioctl" Greg KH <gregkh@linuxfoundation.org> - 2017-07-03 11:20 +0200

#1678077 — [PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl"

FromTodd Kjos <tkjos@android.com>
Date2017-06-29 21:10 +0200
Subject[PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl"
Message-ID<tXMZc-354-13@gated-at.bofh.it>
This reverts commit a906d6931f3ccaf7de805643190765ddd7378e27.

Signed-off-by: Todd Kjos <tkjos@google.com>
---
 drivers/android/binder.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index aae4d8d4be36..157bd3e49ff4 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -3247,10 +3247,6 @@ 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(current->mm != proc->vma_vm_mm)) {
-		pr_err("current mm mismatch proc mm\n");
-		return -EINVAL;
-	}
 	trace_binder_ioctl(cmd, arg);
 
 	ret = wait_event_interruptible(binder_user_error_wait, binder_stop_on_user_error < 2);
@@ -3466,7 +3462,6 @@ static int binder_open(struct inode *nodp, struct file *filp)
 		return -ENOMEM;
 	get_task_struct(current);
 	proc->tsk = current;
-	proc->vma_vm_mm = current->mm;
 	INIT_LIST_HEAD(&proc->todo);
 	init_waitqueue_head(&proc->wait);
 	proc->default_priority = task_nice(current);
-- 
2.13.2.725.g09c95d1e9-goog

[toc] | [next] | [standalone]


#1679808 — Re: [PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl"

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-07-03 11:20 +0200
SubjectRe: [PATCH 01/37] Revert "android: binder: Sanity check at binder ioctl"
Message-ID<tZ5Gq-7vd-31@gated-at.bofh.it>
In reply to#1678077
On Thu, Jun 29, 2017 at 12:01:35PM -0700, Todd Kjos wrote:
> This reverts commit a906d6931f3ccaf7de805643190765ddd7378e27.
> 

I need a reason why this is to be reverted here :)

thanks,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web