Received: by 10.223.185.116 with SMTP id b49csp3778891wrg; Mon, 19 Feb 2018 05:58:06 -0800 (PST) X-Google-Smtp-Source: AH8x226fRuNzWfjPWYW0/IFt40tspQ1sk2+gmbPXShIMdGvoEoQo4hUHomthPEADraordaSO+Ax4 X-Received: by 10.101.67.71 with SMTP id k7mr12329269pgq.136.1519048685943; Mon, 19 Feb 2018 05:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519048685; cv=none; d=google.com; s=arc-20160816; b=q/4TqwgRwDWLkixiaeIyZeeX6jiFRCsy74JwkvoXiqLIQjKlx/SnlMT3LQyK7iRbfJ q0kl3Q5DzEMw4koBXRaqzRnb3MD0xMiSMvAefCH1F4hPPjSaAu7Woly6JPAWVoczxyD3 CA98udXiFoOF/pu3ijdrS8/FpZTt4qpcCPRzA+0aATug3yNwzLuvRJnN6v3ckyoD3vR7 IGroiebSWQNAeWXyLMaQDyWxojbxJaYuEZEzMIZNYkK+5xnQQlgjP6D8/d/LBvreu7ub RWn3ybCD5FXGWVA+NJmnxHq6GCzt9kXcIp2zMD7RtZDXWk3CQ2PrJGKYcLgxJnYKOKrV Xp/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5QvfqN7znt4aOdndv8a7Tvk+f1mzZKBr3zGct7cM8Zs=; b=cyiSN2DqL2NjD/gZUD/DvQAPmCOuAjl+fvb3kOcwDTxU41hqVZj7TqBJtkFBNTxmcU JtfoHiWjL/iltmhIZavVgSxDbcEptcePpcxuizIjpLEDKYOcBsatJT+Y0bhuCSCjCfpA UYiPvwGJyxdjvmLk4fiRmv2z5zW0CAHVavn1WjZXR1QSi504LOkjd9b2K+hKEZQzEgAt ZRGi1mKjWxzm+sCcx7efvFHyGEULDn8O+sHlHMEgVyT66VseMf9nuYQE10fZEaUoTQCF 3VIaBz7evxaRxEF/R71vOhj+ajl5o7gUoaz1ZQ+IyDYJY1LcJea64dT+nwdO226b0ZHY Ii7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=TOJM8Ytn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si19400pgc.593.2018.02.19.05.57.51; Mon, 19 Feb 2018 05:58:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=TOJM8Ytn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505AbeBSN4w (ORCPT + 99 others); Mon, 19 Feb 2018 08:56:52 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38807 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbeBSN4u (ORCPT ); Mon, 19 Feb 2018 08:56:50 -0500 Received: by mail-wm0-f66.google.com with SMTP id z9so9951916wmb.3 for ; Mon, 19 Feb 2018 05:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5QvfqN7znt4aOdndv8a7Tvk+f1mzZKBr3zGct7cM8Zs=; b=TOJM8Ytnk+4XZxz3T2msvqs+iPFKXMlYLWqnjoI2sODA1m9MkZ/V1fIM+b8zTHKinz UG1VahZztMbP43jcptEkrFUl7+D2+nwogNhHV3cWsj09tv9KcTZ3tkqtgg3wfF9AT2Rs uanWUPL5aVWqq7m1x0JHmDFeqjfD8N7XTHqsRkIdjI3O8v80VfR/P4N/iP56ZVRklXqD O0vvsqLpXtlTAeVnVnPC5GDmuOgU+iUsfqY/pa1+1+zdgsUAFyfF+g+1f48PN6lLEax2 N4srlY3Q3Ou8COudr4o3N3Y31KZ3S3mN24ISPTceSwskhj8WsVMBQ6f0JJ+JLu0IIG+w 1jYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5QvfqN7znt4aOdndv8a7Tvk+f1mzZKBr3zGct7cM8Zs=; b=I+mNYWcBfcG3wlJdBrx2uvgM4vfPGPNzi8LtfhEyNE3rQpdIQMnQ2xHaBEEpu+/IeU cNOrzjt/MZ25x5xJRvlTogM4qPgymFKahUbPlNEE41iCRpth+wpccKLpwsXSUPpKq3ZL jVMqKBrxYrliYSgA719CzQfroYRYnpiBuqxl5n0I6T760bF04wPbx4Ln0BzXtWxVG1wA h5p4PdrJEli2cok5WJr7LbEaoDBiyYYEncmDseA51082ZD+phAHHO8SHdC3G/WEU5Ypm Aw3KFq7moWkO2CtV5wm6AkmVPhpv3Jy5fvREtcF/eycJIuHNSyzLW9dsvKb97arj6tSF IzJA== X-Gm-Message-State: APf1xPCm8pk5SQTFianM6IeKlzKgdkLwGvoeRPt5/9EP2JVEM1Qls6YN lsL0MQCZdxK4ltj4m/5bFCIuEI/3 X-Received: by 10.80.177.16 with SMTP id k16mr12571002edd.92.1519048609496; Mon, 19 Feb 2018 05:56:49 -0800 (PST) Received: from node.shutemov.name ([178.121.209.29]) by smtp.gmail.com with ESMTPSA id a63sm15985307ede.89.2018.02.19.05.56.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 05:56:48 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id A0A22648D520; Mon, 19 Feb 2018 16:56:46 +0300 (+03) Date: Mon, 19 Feb 2018 16:56:46 +0300 From: "Kirill A. Shutemov" To: Michal Hocko Cc: Abdul Haleem , linuxppc-dev , linux-mm@kvack.org, kirill.shutemov@linux.intel.com, mpe , Stephen Rothwell , linux-kernel , sachinp Subject: Re: [mainline][Memory off/on][83e3c48] kernel Oops with memory hot-unplug on ppc Message-ID: <20180219135646.lsmxkbgdwrjdlwxy@node.shutemov.name> References: <1517840664.647.17.camel@abdul.in.ibm.com> <20180219134735.GN21134@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180219134735.GN21134@dhcp22.suse.cz> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 02:47:35PM +0100, Michal Hocko wrote: > [CC Kirill - I have a vague recollection that there were some follow ups > for 83e3c48729d9 ("mm/sparsemem: Allocate mem_section at runtime for > CONFIG_SPARSEMEM_EXTREME=y"). Does any of them apply to this issue?] All fixups are in v4.15. > On Mon 05-02-18 19:54:24, Abdul Haleem wrote: > > > > Greetings, > > > > Kernel Oops seen when memory hot-unplug on powerpc mainline kernel. > > > > Machine: Power6 PowerVM ppc64 > > Kernel: 4.15.0 > > Config: attached > > gcc: 4.8.2 > > Test: Memory hot-unplug of a memory block > > echo offline > /sys/devices/system/memory/memory/state > > > > The faulty instruction address points to the code path: > > > > # gdb -batch vmlinux -ex 'list *(0xc000000000238330)' > > 0xc000000000238330 is in get_pfnblock_flags_mask > > (./include/linux/mmzone.h:1157). > > 1152 #endif > > 1153 > > 1154 static inline struct mem_section *__nr_to_section(unsigned long nr) > > 1155 { > > 1156 #ifdef CONFIG_SPARSEMEM_EXTREME > > 1157 if (!mem_section) > > 1158 return NULL; > > 1159 #endif > > 1160 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) > > 1161 return NULL; > > > > > > The code was first introduced with commit( 83e3c48: mm/sparsemem: > > Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y) Any chance to bisect it? Could you check if the commit just before 83e3c48729d9 is fine? -- Kirill A. Shutemov