Re: [PATCH akpm] mm: include VM_MIXEDMAP flag in the VM_SPECIAL list to avoid m(un)locking

2014-02-19 Thread Vlastimil Babka
On 02/16/2014 03:59 PM, Daniel Borkmann wrote: From: Vlastimil Babka [ 4366.519657] [ cut here ] [ 4366.519709] kernel BUG at mm/mlock.c:528! [ 4366.519742] invalid opcode: [#1] SMP [ 4366.519782] Modules linked in: ccm arc4 iwldvm [...] [ 4366.520488] video [ 4366

Re: [PATCH akpm] mm: include VM_MIXEDMAP flag in the VM_SPECIAL list to avoid m(un)locking

2014-02-18 Thread Andrew Morton
On Sun, 16 Feb 2014 15:59:45 +0100 Daniel Borkmann wrote: > Daniel Borkmann reported a bug (stack trace above) with VM_BUG_ON > assertions failing where munlock_vma_pages_range() thinks it's > unexpectedly in the middle of a THP page. This can be reproduced > with default config since 3.11 kernel

Re: [PATCH akpm] mm: include VM_MIXEDMAP flag in the VM_SPECIAL list to avoid m(un)locking

2014-02-17 Thread Rik van Riel
On 02/16/2014 09:59 AM, Daniel Borkmann wrote: > From: Vlastimil Babka > This patch fixes the issue by adding VM_MIXEDMAP flag to VM_SPECIAL, > a list of flags that make vma's non-mlockable and non-mergeable. > The reasoning is that VM_MIXEDMAP vma's are similar to VM_PFNMAP, > which is already o

Re: [PATCH akpm] mm: include VM_MIXEDMAP flag in the VM_SPECIAL list to avoid m(un)locking

2014-02-16 Thread Hannes Frederic Sowa
On Sun, Feb 16, 2014 at 03:59:45PM +0100, Daniel Borkmann wrote: > From: Vlastimil Babka > > [ 4366.519657] [ cut here ] > [ 4366.519709] kernel BUG at mm/mlock.c:528! > [ 4366.519742] invalid opcode: [#1] SMP > [ 4366.519782] Modules linked in: ccm arc4 iwldvm [...]