From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292AbdF0Sup (ORCPT ); Tue, 27 Jun 2017 14:50:45 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:38392 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752311AbdF0Suj (ORCPT ); Tue, 27 Jun 2017 14:50:39 -0400 X-Greylist: delayed 637 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Jun 2017 14:50:39 EDT From: valdis.kletnieks@vt.edu X-Google-Original-From: Valdis.Kletnieks@vt.edu X-Mailer: exmh version 2.8.0 04/21/2017 with nmh-1.6+dev To: "Kirill A. Shutemov" Cc: Vlastimil Babka , Punit Agrawal , Steve Capper , Andrew Morton , Andrei Vagin , linux-mm@kvack.org, LKML , Stephen Rothwell , Cyrill Gorcunov Subject: Re: linux-next: BUG: Bad page state in process ip6tables-save pfn:1499f4 In-Reply-To: <20170627163734.6js4jkwkwlz6xwir@black.fi.intel.com> References: <20170624001738.GB7946@gmail.com> <20170624150824.GA19708@gmail.com> <20170627163734.6js4jkwkwlz6xwir@black.fi.intel.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1498588793_8534P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 27 Jun 2017 14:39:53 -0400 Message-ID: <8643.1498588793@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1498588793_8534P Content-Type: text/plain; charset=us-ascii On Tue, 27 Jun 2017 19:37:34 +0300, "Kirill A. Shutemov" said: > > > commit c3aab7b2d4e8434d53bc81770442c14ccf0794a8 > > > Merge: 849c34f 93a7379 > > > Author: Stephen Rothwell > > > Date: Fri Jun 23 16:40:07 2017 +1000 > > > > > > Merge branch 'akpm-current/current' > > > > Hm is it really the merge of mmotm itself and not one of the patches in > > mmotm? > > Anyway smells like THP, adding Kirill. > > Okay, it took a while to figure it out. > > The bug is in patch "mm, gup: ensure real head page is ref-counted when > using hugepages". We should look for a head *before* the loop. Otherwise > 'page' may point to the first page beyond the compound page. > > The patch below should help. Confirmed that fixes the BUGs that I was hitting. Tested-By: Valdis Kletnieks --==_Exmh_1498588793_8534P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.8.0 04/21/2017 iQEVAwUBWVKmeY0DS38y7CIcAQJjpAf/aQ1PsbY4ZHUDDn2GSOfXbZKIflyMBCML z/RDQh1nzdoE8hAaPfHmDznHsHLX1XSD6HU20TJK2r1tXKLZ652jVVhxwFz6o1zA cTr5AKGuynXpOhstmJS1XF12wI16Jb87o31zT3wVwU7QbgpXnSXUdBcO7cWRgzwk +8bTeBKpORg92K93gERbmZVLaTNEVEIssxAWXq0303KnbPnwLwEpX9LdsQ7KJtIx 7ZUYEdb9j9PzXl5Aso5r2vO6VfoMCbjb/hPtBObXKX10vwWEbLPNyx831CmYWjRl Qm5F4mqLhBW1yplasaaK7Z86DEIr+KQ7WSmM48W94EoGGYnNc5lDSQ== =pUDz -----END PGP SIGNATURE----- --==_Exmh_1498588793_8534P--