Re: [PATCH 2/2] android: binder: Don't get mm from task

2017-10-20 Thread Greg Kroah-Hartman
On Sat, Sep 16, 2017 at 01:11:57AM -0400, Sherry Yang wrote: > Use binder_alloc struct's mm_struct rather than getting > a reference to the mm struct through get_task_mm to > avoid a potential deadlock between lru lock, task lock and > dentry lock, since a thread can be holding the task lock > and

[PATCH 2/2] android: binder: Don't get mm from task

2017-09-15 Thread Sherry Yang
Use binder_alloc struct's mm_struct rather than getting a reference to the mm struct through get_task_mm to avoid a potential deadlock between lru lock, task lock and dentry lock, since a thread can be holding the task lock and the dentry lock while trying to acquire the lru lock. Acked-by: Arve H