diff options
author | Jann Horn <[email protected]> | 2016-06-16 00:45:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-08-15 16:59:23 +0200 |
commit | 7b142d8fd0bd4c9bf06ccb72ac4daedb503f0124 (patch) | |
tree | bf9d3363c73c6de066152384b4608a259bd473e0 /tools/perf/scripts/python | |
parent | 7ef9153d9af5fe7ce32dcc0f558bfcfc3d2b3016 (diff) |
android: binder: fix dangling pointer comparison
If /dev/binder is opened and the opener process then e.g. calls execve,
proc->vma_vm_mm will still point to the location of the now-freed
mm_struct. If the process then calls ioctl(binder_fd, ...), the dangling
proc->vma_vm_mm pointer will be compared to current->mm.
Let the binder take a reference to the mm_struct to avoid this.
v2: use the right refcounter
Fixes: a906d6931f3c ("android: binder: Sanity check at binder ioctl")
Signed-off-by: Jann Horn <[email protected]>
Reviewed-by: Chen Feng <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions