patch "ANDROID: binder: fix proc->tsk check." added to char-misc-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ANDROID: binder: fix proc->tsk check.
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
b2a6d1b999a4c13e5997bb864694e77172d45250Mon Sep 17 00:00:00 2001
From: Martijn Coenen <[email protected]>
Date: Fri, 28 Jul 2017 13:56:08 +0200
Subject: ANDROID: binder: fix proc->tsk check.
Commit c4ea41ba195d ("binder: use group leader instead of open thread")' was incomplete and didn't update a check in binder_mmap(), causing all mmap() calls into the binder driver to fail.
--- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/binder.c +1 -1
@@ -3362,7 +3362,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)const char *failure_string;struct binder_buffer *buffer; -if (proc->tsk != current) +if (proc->tsk != current->group_leader)return -EINVAL ;if ((vma->vm_end - vma->vm_start) >SZ_4M )
Signature · 1 line
2.14.1