Skip to content

Commit

Permalink
ANDROID: fix binder change in merge of 4.9.188
Browse files Browse the repository at this point in the history
The 4.9.188 merge was missing the change to the
binder driver associated with the linux-4.9.y
commit 16903f1 ("coredump: fix race condition
between mmget_not_zero()/get_task_mm() and core dumping").
It was left out because the android-4.9 binder
driver has been significantly refactored compared
to linux-4.9.y.

This patch applies the missing change from that
patch to the binder driver.

Change-Id: I803e558cb629fedff04b14e23ac9f83e98628ede
Fixes: d4fff2d0a879 ("Merge 4.9.188 into android-4.9")
Signed-off-by: Todd Kjos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
toddkjos authored and THEBOSS619 committed Sep 25, 2019
1 parent 5cda4db commit a2d74a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/android/binder_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,

if (mm) {
down_read(&mm->mmap_sem);
if (!mmget_still_valid(mm)) {
if (allocate == 0)
goto free_range;
goto err_no_vma;
}
vma = alloc->vma;
}

Expand Down

0 comments on commit a2d74a8

Please sign in to comment.