Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-14 Thread Sasha Levin
On 03/13/2014 04:57 PM, Hugh Dickins wrote: On Thu, 13 Mar 2014, Davidlohr Bueso wrote: On Tue, 2014-03-11 at 18:20 -0400, Sasha Levin wrote: On 03/11/2014 05:45 PM, Davidlohr Bueso wrote: On Tue, 2014-03-11 at 17:02 -0400, Sasha Levin wrote: On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: Bi

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-13 Thread Hugh Dickins
On Thu, 13 Mar 2014, Davidlohr Bueso wrote: > On Tue, 2014-03-11 at 18:20 -0400, Sasha Levin wrote: > > On 03/11/2014 05:45 PM, Davidlohr Bueso wrote: > > > On Tue, 2014-03-11 at 17:02 -0400, Sasha Levin wrote: > > >> >On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: > > > >>Bingo! With the abov

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-13 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 18:20 -0400, Sasha Levin wrote: > On 03/11/2014 05:45 PM, Davidlohr Bueso wrote: > > On Tue, 2014-03-11 at 17:02 -0400, Sasha Levin wrote: > >> >On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: > > >>Bingo! With the above patch: > > > >> > > > > >> >[ 243.565794] k

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
On 03/11/2014 05:45 PM, Davidlohr Bueso wrote: On Tue, 2014-03-11 at 17:02 -0400, Sasha Levin wrote: >On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: > >>Bingo! With the above patch: > >> > > >> >[ 243.565794] kernel BUG at mm/vmacache.c:76! > >> >[ 243.566720] invalid opcode: [#1] PREEM

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Dave Jones
On Tue, Mar 11, 2014 at 01:47:24PM -0700, Davidlohr Bueso wrote: > On Tue, 2014-03-11 at 16:45 -0400, Sasha Levin wrote: > > On 03/11/2014 04:30 PM, Andrew Morton wrote: > > > All I can think is that find_vma() went and returned a vma from a > > > different mm, which would be odd. How about I

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Michel Lespinasse
On Tue, Mar 11, 2014 at 1:07 PM, Davidlohr Bueso wrote: > On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: >> I've ended up deleting the log file by mistake, but this bug does seem to be >> important >> so I'd rather not wait before the same issue is triggered again. >> >> The call chain is

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 17:02 -0400, Sasha Levin wrote: > On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: > >> Bingo! With the above patch: > >> > > >> >[ 243.565794] kernel BUG at mm/vmacache.c:76! > >> >[ 243.566720] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC > >> >[ 243.568048] Dumpin

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
On 03/11/2014 04:47 PM, Davidlohr Bueso wrote: Bingo! With the above patch: > >[ 243.565794] kernel BUG at mm/vmacache.c:76! >[ 243.566720] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC >[ 243.568048] Dumping ftrace buffer: >[ 243.568740](ftrace buffer empty) >[ 243.569481] Modul

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 16:45 -0400, Sasha Levin wrote: > On 03/11/2014 04:30 PM, Andrew Morton wrote: > > All I can think is that find_vma() went and returned a vma from a > > different mm, which would be odd. How about I toss this in there? > > > > --- a/mm/vmacache.c~a > > +++ a/mm/vmacache.c > >

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
On 03/11/2014 04:30 PM, Andrew Morton wrote: All I can think is that find_vma() went and returned a vma from a different mm, which would be odd. How about I toss this in there? --- a/mm/vmacache.c~a +++ a/mm/vmacache.c @@ -72,8 +72,10 @@ struct vm_area_struct *vmacache_find(str for (i =

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 13:30 -0700, Andrew Morton wrote: > On Tue, 11 Mar 2014 13:07:33 -0700 Davidlohr Bueso wrote: > > > On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: > > > Hi all, > > > > > > I've ended up deleting the log file by mistake, but this bug does seem to > > > be important

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
On 03/11/2014 04:30 PM, Andrew Morton wrote: I worry about what happens if __get_user_pages decides to do if (ret & VM_FAULT_RETRY) { if (nonblocking) *nonblocking = 0;

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Andrew Morton
On Tue, 11 Mar 2014 13:07:33 -0700 Davidlohr Bueso wrote: > On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: > > Hi all, > > > > I've ended up deleting the log file by mistake, but this bug does seem to > > be important > > so I'd rather not wait before the same issue is triggered again. >

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 16:12 -0400, Sasha Levin wrote: > On 03/11/2014 04:07 PM, Davidlohr Bueso wrote: > > On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: > >> Hi all, > >> > >> I've ended up deleting the log file by mistake, but this bug does seem to > >> be important > >> so I'd rather not

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
On 03/11/2014 04:07 PM, Davidlohr Bueso wrote: On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: Hi all, I've ended up deleting the log file by mistake, but this bug does seem to be important so I'd rather not wait before the same issue is triggered again. The call chain is: mloc

Re: mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Davidlohr Bueso
On Tue, 2014-03-11 at 15:39 -0400, Sasha Levin wrote: > Hi all, > > I've ended up deleting the log file by mistake, but this bug does seem to be > important > so I'd rather not wait before the same issue is triggered again. > > The call chain is: > > mlock (mm/mlock.c:745) >

mm: mmap_sem lock assertion failure in __mlock_vma_pages_range

2014-03-11 Thread Sasha Levin
Hi all, I've ended up deleting the log file by mistake, but this bug does seem to be important so I'd rather not wait before the same issue is triggered again. The call chain is: mlock (mm/mlock.c:745) __mm_populate (mm/mlock.c:700) __mlock_vma_p