Re: [PATCH 3/6] mips: call find_vma with the mmap_sem held

2014-04-22 Thread Andreas Herrmann
On Sat, Apr 19, 2014 at 07:26:28PM -0700, Davidlohr Bueso wrote: > Performing vma lookups without taking the mm->mmap_sem is asking > for trouble. While doing the search, the vma in question can be > modified or even removed before returning to the caller. Take the > lock (exclusively) in order to

Re: [PATCH 3/6] mips: call find_vma with the mmap_sem held

2014-04-22 Thread Andreas Herrmann
On Sat, Apr 19, 2014 at 07:26:28PM -0700, Davidlohr Bueso wrote: Performing vma lookups without taking the mm-mmap_sem is asking for trouble. While doing the search, the vma in question can be modified or even removed before returning to the caller. Take the lock (exclusively) in order to

[PATCH 3/6] mips: call find_vma with the mmap_sem held

2014-04-19 Thread Davidlohr Bueso
Performing vma lookups without taking the mm->mmap_sem is asking for trouble. While doing the search, the vma in question can be modified or even removed before returning to the caller. Take the lock (exclusively) in order to avoid races while iterating through the vmacache and/or rbtree. Updates

[PATCH 3/6] mips: call find_vma with the mmap_sem held

2014-04-19 Thread Davidlohr Bueso
Performing vma lookups without taking the mm-mmap_sem is asking for trouble. While doing the search, the vma in question can be modified or even removed before returning to the caller. Take the lock (exclusively) in order to avoid races while iterating through the vmacache and/or rbtree. Updates