]> git.karo-electronics.de Git - linux-beck.git/commit
android: binder: Sanity check at binder ioctl
authorChen Feng <puck.chen@hisilicon.com>
Mon, 1 Feb 2016 06:04:02 +0000 (14:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commita906d6931f3ccaf7de805643190765ddd7378e27
tree8a2a1c03c6ea18e631124d36bae2fb8f1badb3de
parent70bc916b2c80913753fb188d4daee50a64d21ba0
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: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Wei Dong <weidong2@hisilicon.com>
Signed-off-by: Junmin Zhao <zhaojunmin@huawei.com>
Reviewed-by: Zhuangluan Su <suzhuangluan@hisilicon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c