Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3787511imu; Mon, 28 Jan 2019 10:47:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5b19kuDMVIN9gNe3AkcHgHljkulwk1zdHawejtJ6s1myhsxyaIhG/lTVI1FzTv7R/9el1V X-Received: by 2002:a63:4384:: with SMTP id q126mr20647760pga.160.1548701247270; Mon, 28 Jan 2019 10:47:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548701247; cv=none; d=google.com; s=arc-20160816; b=wZ4I17kxB4yjYGuoE2AhcJWn1UKIKKpVOHZTz7IK77AJqT1EQOMDH4a+i0YgNB070L wVWrL0Ka0E6v0Iwn7MDPtWzkXfRaUh4L9gOnd+SKhGXSNX5xG7HuC9MktDFJi9KFplMU cGzWkl0ulYrZM5umAyOrbtXMJOaEvX4yQ1BNzQ2V9pnXe4PdQ0oKGn3i6oRhw+ZDdN4P hhBerhslsqH0j4uoILFNHEx/7lDflXS90HgmqyGmIvV1NYcE5eiDWo0Ngv5TC6W3BdDm aYrzt6yvA+7OCWpq0zmyzXeb1lAfSPDFafdstAlgMVt2NSP3l1GDgRgkepM9HRlV398x jt+A== 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; bh=+hyK1kkrZLEaW5era3XGIMlLgINvsnAGJTe4TSc7YJg=; b=IJnpB4pHc/pjIr4S2HH/fH4Zhz2WCgtdxBIlHYZUikEFD7IrkdufedbgfoHFPOjCCE wAHe3WCk+EgHT+b/qLnS1fXT2kw12Nxz7bklexmUfCGGQ8iS+2B7N6c4OF8ZkNyAXZwN 5YoN7nsYg1vV91n9+pEQcGzNfC7USeWqvkJA6jry/JhEyT8AOEG2LYIaODeu+F7huEWZ DKjMd2wts+1FFNoD/JB5qSXRu3TmAtXvSrgrHZwyL4QQApYw3bPOpuxmylKqSqsnT33J vs2QwRuS51J5gncK6MWwq9Uu6WCEpZD4UnZLxgUcOs4S05JGl/AMBZH8EnLjWbJ1FRc4 jp3g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m35si17737245pgb.246.2019.01.28.10.47.11; Mon, 28 Jan 2019 10:47:27 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727372AbfA1Spa (ORCPT + 99 others); Mon, 28 Jan 2019 13:45:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:56776 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726694AbfA1Spa (ORCPT ); Mon, 28 Jan 2019 13:45:30 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3FFE7B00C; Mon, 28 Jan 2019 18:45:29 +0000 (UTC) Date: Mon, 28 Jan 2019 19:45:28 +0100 From: Michal Hocko To: Andrew Morton Cc: Mikhail Zaslonko , Mikhail Gavrilov , Pavel Tatashin , schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, gerald.schaefer@de.ibm.com, linux-mm@kvack.org, LKML Subject: Re: [PATCH 0/2] mm, memory_hotplug: fix uninitialized pages fallouts. Message-ID: <20190128184528.GU18811@dhcp22.suse.cz> References: <20190128144506.15603-1-mhocko@kernel.org> <20190128095054.4103093dec81f1c904df7929@linux-foundation.org> <20190128184139.GR18811@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128184139.GR18811@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 28-01-19 19:41:39, Michal Hocko wrote: > On Mon 28-01-19 09:50:54, Andrew Morton wrote: > > On Mon, 28 Jan 2019 15:45:04 +0100 Michal Hocko wrote: > > > > > Mikhail has posted fixes for the two bugs quite some time ago [1]. I > > > have pushed back on those fixes because I believed that it is much > > > better to plug the problem at the initialization time rather than play > > > whack-a-mole all over the hotplug code and find all the places which > > > expect the full memory section to be initialized. We have ended up with > > > 2830bf6f05fb ("mm, memory_hotplug: initialize struct pages for the full > > > memory section") merged and cause a regression [2][3]. The reason is > > > that there might be memory layouts when two NUMA nodes share the same > > > memory section so the merged fix is simply incorrect. > > > > > > In order to plug this hole we really have to be zone range aware in > > > those handlers. I have split up the original patch into two. One is > > > unchanged (patch 2) and I took a different approach for `removable' > > > crash. It would be great if Mikhail could test it still works for his > > > memory layout. > > > > > > [1] http://lkml.kernel.org/r/20181105150401.97287-2-zaslonko@linux.ibm.com > > > [2] https://bugzilla.redhat.com/show_bug.cgi?id=1666948 > > > [3] http://lkml.kernel.org/r/20190125163938.GA20411@dhcp22.suse.cz > > > > Any thoughts on which kernel version(s) need these patches? > > My remark in 2830bf6f05fb still holds > : This has alwways been problem AFAIU. It just went unnoticed because we > : have zeroed memmaps during allocation before f7f99100d8d9 ("mm: stop > : zeroing memory during allocation in vmemmap") and so the above test > : would simply skip these ranges as belonging to zone 0 or provided a > : garbage. > : > : So I guess we do care for post f7f99100d8d9 kernels mostly and > : therefore Fixes: f7f99100d8d9 ("mm: stop zeroing memory during > : allocation in vmemmap") > > But, please let's wait for the patch 1 to be confirmed to fix the issue. Also the revert [1] should be applied first. I thought Linus would pick it up but he hasn't done so yet. [1] http://lkml.kernel.org/r/20190125181549.GE20411@dhcp22.suse.cz -- Michal Hocko SUSE Labs