mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Signed-off-by: Wei Dong <[email protected]> Signed-off-by: Junmin Zhao <[email protected]> Reviewed-by: Zhuangluan Su <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>