Re: [PATCH v3] android: binder: Sanity check at binder ioctl

2016-02-02 Thread Chen Feng
Add android kernel team. On 2016/2/1 14:04, Chen Feng wrote: > 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

[PATCH v3] android: binder: Sanity check at binder ioctl

2016-01-31 Thread Chen Feng
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