Re: v4.6 kernel BUG at mm/rmap.c:1101!

From: Mika Westerberg
Date: Wed May 25 2016 - 05:47:48 EST


On Mon, May 23, 2016 at 05:18:55PM +0200, Andrea Arcangeli wrote:
> > diff --git a/mm/rmap.c b/mm/rmap.c
> > index 8a839935b18c..0ea5d9071b32 100644
> > --- a/mm/rmap.c
> > +++ b/mm/rmap.c
> > @@ -1098,6 +1098,8 @@ void page_move_anon_rmap(struct page *page,
> >
> > VM_BUG_ON_PAGE(!PageLocked(page), page);
> > VM_BUG_ON_VMA(!anon_vma, vma);
> > + if (IS_ENABLED(CONFIG_DEBUG_VM) && PageTransHuge(page))
> > + address &= HPAGE_PMD_MASK;
> > VM_BUG_ON_PAGE(page->index != linear_page_index(vma, address), page);
> >
> > anon_vma = (void *) anon_vma + PAGE_MAPPING_ANON;
>
> Reviewed-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>

My desktop survived overnight without crash so I guess this is

Tested-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>

Thanks.