From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by kanga.kvack.org (Postfix) with ESMTP id 059EF6B0032 for ; Wed, 22 Apr 2015 14:33:34 -0400 (EDT) Received: by wiun10 with SMTP id n10so67453232wiu.1 for ; Wed, 22 Apr 2015 11:33:33 -0700 (PDT) Received: from kirsi1.inet.fi (mta-out1.inet.fi. [62.71.2.203]) by mx.google.com with ESMTP id hu2si28100486wib.17.2015.04.22.11.33.31 for ; Wed, 22 Apr 2015 11:33:32 -0700 (PDT) Date: Wed, 22 Apr 2015 21:33:09 +0300 From: "Kirill A. Shutemov" Subject: Re: kernel BUG at mm/swap.c:134! - page dumped because: VM_BUG_ON_PAGE(page_mapcount(page) != 0) Message-ID: <20150422183309.GA4351@node.dhcp.inet.fi> References: <20150418205656.GA7972@pd.tnic> <20150418215656.GA13928@node.dhcp.inet.fi> <20150418220803.GB7972@pd.tnic> <20150422131219.GD6897@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150422131219.GD6897@pd.tnic> Sender: owner-linux-mm@kvack.org List-ID: To: Borislav Petkov Cc: Linus Torvalds , Naoya Horiguchi , Michal Hocko , Andrew Morton , x86-ml , linux-mm , Andrea Arcangeli , Hugh Dickins On Wed, Apr 22, 2015 at 03:12:19PM +0200, Borislav Petkov wrote: > On Sun, Apr 19, 2015 at 12:08:03AM +0200, Borislav Petkov wrote: > > On Sat, Apr 18, 2015 at 05:59:53PM -0400, Linus Torvalds wrote: > > > On Sat, Apr 18, 2015 at 5:56 PM, Kirill A. Shutemov > > > wrote: > > > > > > > > Andrea has already seen the bug and pointed to 8d63d99a5dfb as possible > > > > cause. I don't see why the commit could broke anything, but it worth > > > > trying to revert and test. > > > > > > Ahh, yes, that does look like a more likely culprit. > > > > Reverted and building... will report in the next days. > > FWIW, box is solid with the revert and has an uptime of ~4 days so far > without hickups. Could you try patch below instead? This can give a clue what's going on. diff --git a/mm/swap.c b/mm/swap.c index a7251a8ed532..0dff7004aa25 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -131,7 +131,11 @@ void put_unrefcounted_compound_page(struct page *page_head, struct page *page) * here, see the comment above this function. */ VM_BUG_ON_PAGE(!PageHead(page_head), page_head); - VM_BUG_ON_PAGE(page_mapcount(page) != 0, page); + if (page_mapcount(page) != 0) { + dump_page(page_head, NULL); + dump_page(page, NULL); + BUG(); + } if (put_page_testzero(page_head)) { /* * If this is the tail of a slab THP page, -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org