Skip to content

Commit 9dac44d

Browse files
Martijn Coenengregkh
authored andcommitted
ANDROID: binder: fix proc->tsk check.
commit b2a6d1b999a4c13e5997bb864694e77172d45250 upstream. 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. Signed-off-by: Martijn Coenen <maco@android.com> Tested-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1792d6c commit 9dac44d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
28692869
const char *failure_string;
28702870
struct binder_buffer *buffer;
28712871

2872-
if (proc->tsk != current)
2872+
if (proc->tsk != current->group_leader)
28732873
return -EINVAL;
28742874

28752875
if ((vma->vm_end - vma->vm_start) > SZ_4M)

0 commit comments

Comments
 (0)