Skip to content
Commit a906d693 authored by Chen Feng's avatar Chen Feng Committed by Greg Kroah-Hartman
Browse files

android: binder: Sanity check at binder ioctl



Sanity check at binder ioctl function,
Only allow the shared mm_struct to use the same binder-object
to do binder operate.

And add proc->vma_vm_mm = current->mm at the open function.
The libbinder do ioctl before mmap called.

V2: Fix compile error for error commit
V3: Change the condition to proc->vma_vm_mm

Signed-off-by: default avatarChen Feng <puck.chen@hisilicon.com>
Signed-off-by: default avatarWei Dong <weidong2@hisilicon.com>
Signed-off-by: default avatarJunmin Zhao <zhaojunmin@huawei.com>
Reviewed-by: default avatarZhuangluan Su <suzhuangluan@hisilicon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70bc916b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment