From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946670Ab2LFSaz (ORCPT ); Thu, 6 Dec 2012 13:30:55 -0500 Received: from smtprelay-h22.telenor.se ([195.54.99.197]:50670 "EHLO smtprelay-h22.telenor.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946537Ab2LFSay (ORCPT ); Thu, 6 Dec 2012 13:30:54 -0500 X-SENDER-IP: [85.230.168.206] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnNKACHjwFBV5qjOPGdsb2JhbABEhUuFI7M6FwMBAQEBODSCHgEBBTocIxAIAxguFCUKGhOIFMJqFIwlg2JhA5YChXuDU4lu X-IronPort-AV: E=Sophos;i="4.84,231,1355094000"; d="scan'208";a="165437439" From: "Henrik Rydberg" Date: Thu, 6 Dec 2012 19:32:59 +0100 To: Linus Torvalds Cc: Mel Gorman , Jan Kara , linux-mm , Linux Kernel Mailing List Subject: Re: Oops in 3.7-rc8 isolate_free_pages_block() Message-ID: <20121206183259.GA591@polaris.bitmath.org> References: <20121206091744.GA1397@polaris.bitmath.org> <20121206144821.GC18547@quack.suse.cz> <20121206161934.GA17258@suse.de> <20121206175451.GC17258@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2012 at 10:19:35AM -0800, Linus Torvalds wrote: > On Thu, Dec 6, 2012 at 9:55 AM, Mel Gorman wrote: > > > > Yeah. I was listening to a talk while I was writing it, a bit cranky and > > didn't see why I should suffer alone. > > Makes sense. > > > Quasimoto strikes again > > Is that Quasimodo's Japanese cousin? > > > - end_pfn = min(pfn + pageblock_nr_pages, zone_end_pfn); > > + > > + /* > > + * As pfn may not start aligned, pfn+pageblock_nr_page > > + * may cross a MAX_ORDER_NR_PAGES boundary and miss > > + * a pfn_valid check. Ensure isolate_freepages_block() > > + * only scans within a pageblock. > > + */ > > + end_pfn = ALIGN(pfn + pageblock_nr_pages, pageblock_nr_pages); > > + end_pfn = min(end_pfn, end_pfn); > > Ok, this looks much nicer, except it's obviously buggy. The > min(end_pfn, end_pfn) thing is insane, and I'm sure you meant for that > line to be > > + end_pfn = min(end_pfn, zone_end_pfn); > > Henrik, does that - corrected - patch (*instead* of the previous one, > not in addition to) also fix your issue? Yes - I can no longer trigger the failpath, so it seems to work. Mel, enjoy the rest of the talk. ;-) Generally, I am a bit surprised that noone hit this before, given that it was quite easy to trigger. I will check 3.6 as well. Thanks, Henrik