Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-25 Thread Greg Kroah-Hartman
On Tue, Oct 24, 2017 at 11:36:48AM -0700, Arve Hjønnevåg wrote: > On Tue, Oct 24, 2017 at 12:28 AM, Greg Kroah-Hartman > wrote: > > On Mon, Oct 23, 2017 at 11:18:52AM -0700, Arve Hjønnevåg wrote: > >> On Sat, Oct 21, 2017 at 1:15 AM, Greg Kroah-Hartman > >>

Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-24 Thread Arve Hjønnevåg
On Tue, Oct 24, 2017 at 12:28 AM, Greg Kroah-Hartman wrote: > On Mon, Oct 23, 2017 at 11:18:52AM -0700, Arve Hjønnevåg wrote: >> On Sat, Oct 21, 2017 at 1:15 AM, Greg Kroah-Hartman >> wrote: >> > On Fri, Oct 20, 2017 at 08:58:58PM -0400,

Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-24 Thread Greg Kroah-Hartman
On Mon, Oct 23, 2017 at 11:18:52AM -0700, Arve Hjønnevåg wrote: > On Sat, Oct 21, 2017 at 1:15 AM, Greg Kroah-Hartman > wrote: > > On Fri, Oct 20, 2017 at 08:58:58PM -0400, Sherry Yang wrote: > >> Use binder_alloc struct's mm_struct rather than getting > >> a reference

Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-23 Thread Arve Hjønnevåg
On Sat, Oct 21, 2017 at 1:15 AM, Greg Kroah-Hartman wrote: > On Fri, Oct 20, 2017 at 08:58:58PM -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

Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 08:58:58PM -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 v2 1/4] android: binder: Don't get mm from task

2017-10-20 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