Re: mm: BUG in munlock_vma_pages_range
From: Kirill A. Shutemov
Date: Tue Nov 15 2016 - 08:27:56 EST
On Tue, Nov 15, 2016 at 05:47:26AM +0100, Dmitry Vyukov wrote:
> Hello,
>
> The following program triggers BUG in munlock_vma_pages_range:
>
> // autogenerated by syzkaller (http://github.com/google/syzkaller)
> #include <sys/mman.h>
>
> int main()
> {
> mmap((void*)0x20105000ul, 0xc00000ul, 0x2ul, 0x2172ul, -1, 0);
> mremap((void*)0x201fd000ul, 0x4000ul, 0xc00000ul, 0x3ul, 0x203f0000ul);
> return 0;
> }
>
>
> page:ffffea0001847cc0 count:0 mapcount:1 mapping:dead000000000400
> index:0x20400 compound_mapcount: 1
> flags: 0x5fffc0000000000()
> page dumped because: VM_BUG_ON_PAGE(PageMlocked(page))
Ughh.. mlock() again.
This should fix the issue: