Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3545126imu; Mon, 28 Jan 2019 06:46:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN6m0gK74/BzrJivV2RQg2r1XWXtk2/aPsxA9//6MJHqRQEshATpnt9HdOgAzSRcrlOKG0ex X-Received: by 2002:a65:60c2:: with SMTP id r2mr20267239pgv.393.1548686781907; Mon, 28 Jan 2019 06:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548686781; cv=none; d=google.com; s=arc-20160816; b=ln8VQ3yqWyNuJ929rpmBrb6Ckv+htHyc7AJHSFWskiQb5RkJz6MI5nFpxoFrSw24h8 yq8zyIXjkylsc+a8NDOKdMDHO2OPlPPpAX6xk52LaD+fSzqplmjKvDhDAMHl8zi32zaW vz6dKMiHM9aQCVUVa7XNZkmiIvfQentn8Oo5Bjb7dfGQNIh3rnlFwlI7nJGkwYornzZT V1HZHg/uap2bNh7jvhXP8Y9zSFtmaVWRAsMZkGLU5EsIbPAz4N9UQ/rUsnL7NgW8b/ym RrauJYrUlvCZSSsYJgIl4os/r4kS6PJjiQmRB2ZVLeCWqZvZ4kR0DD7ja9BxGP6iQEko 2tcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=VmmjCE9nv23gtn5FhnfCZit8Inds2NxcQgpLgdIXFWA=; b=jZ42Fm0CooKE3TotOdg2qGgccKFMOs6PyTGrVwcBMO2+6B8ufeMXm3bm87GCorplHd UnIv1ddrFny6fvJM9hJPoOsfuUFWgG5AxWRzScToxmda77Ejtg2/TGybwwZPsH2M6kpG y23H6iTGGiUnDqNKWbpLn99dDOxtjW4b/nl6jImumO89GwBAbU1t5RQ67PfGK6rhgDD9 d2uaNizOqpQq8OSsMQY1FW19cEvpHWOHj0XuVxsRGZFQqThyOBLgAO8ewnBEZ6K0TcL7 kY/zl6dtteWboWrBbs2N66yG+pVdQqbCBHbRsHLVAVTwRqAm2BDhiajmgmjOuNTEZdk2 40GA== 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 b11si4794007pgt.289.2019.01.28.06.46.06; Mon, 28 Jan 2019 06:46:21 -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 S1726805AbfA1OpQ (ORCPT + 99 others); Mon, 28 Jan 2019 09:45:16 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40948 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfA1OpQ (ORCPT ); Mon, 28 Jan 2019 09:45:16 -0500 Received: by mail-ed1-f68.google.com with SMTP id g22so13190382edr.7 for ; Mon, 28 Jan 2019 06:45:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VmmjCE9nv23gtn5FhnfCZit8Inds2NxcQgpLgdIXFWA=; b=ptDeEMwrJ2Fs0kGjansFzmc0VXXKN0x0JmJfflPbBAJ6mhYRrBvuzYgeGkMarCtnAO 0Blj/SYqkVSLkL9fpFxQY8AwkrCqIJ4GxE1NANdk6izwLTPMWIgmwDuZe95vuJqvsg30 2bUeTAmKo0YH4IXi0MyKPMoVQkrX2pvr28yDEKLec9w+3SWLzUUHeXPFmdftnXGaUVEg Ntt3ZQuUrwaVlo8IYoJYNLUDIYS+/1ClALoCR35By8MTjofpm1Nunvp2X6wtGFwu2DpY wP77d655yHYrtm35/VQ9HrwX8S+fbYBRWkLJvTBMgPxX9h0EkYhOqPvKzSjBR9PcZqIi cW1g== X-Gm-Message-State: AJcUukfsnkBxg/l9bADlu3xCwLHtdtacpcdvzyxl0LXhkS00NQLDRdzd zVo0slFGoEcQkBFJubykfNA= X-Received: by 2002:a50:b205:: with SMTP id o5mr21305494edd.245.1548686714588; Mon, 28 Jan 2019 06:45:14 -0800 (PST) Received: from tiehlicka.microfocus.com (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id j8sm2919064ejr.17.2019.01.28.06.45.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 06:45:13 -0800 (PST) From: Michal Hocko To: Mikhail Zaslonko , Mikhail Gavrilov Cc: Andrew Morton , Pavel Tatashin , schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, gerald.schaefer@de.ibm.com, , LKML Subject: [PATCH 0/2] mm, memory_hotplug: fix uninitialized pages fallouts. Date: Mon, 28 Jan 2019 15:45:04 +0100 Message-Id: <20190128144506.15603-1-mhocko@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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