Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4008591yba; Tue, 7 May 2019 10:33:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6OWFpnAPw8Va7+LVrbISA1NEC5N2itLkjtppKM98FRbeU6IKfhM0DGr0bYAT4BCrXjXUe X-Received: by 2002:a17:902:9a92:: with SMTP id w18mr41845463plp.88.1557250412069; Tue, 07 May 2019 10:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557250412; cv=none; d=google.com; s=arc-20160816; b=l23JzcBzTwHCc9UIzwCFeuLzeYX3Df+nN2o7pes0a08LzBMc2y/EQ6y7ijo3XVc+bH yn7m+YOa52vlcDDICVgCJy4JYivdUdY1JGIKhPh5/cBhlAr3AZJMlzsiBMP97eFvemv+ GXJlW3+nXNM7+/EAgDapUviRGIckCp4GoLfep6iM86rWIhPTJrVWfcphlgbTT7vaaiQh 4GrFdrReFC8qtSLtncA9JPaX3KNANynEDYKByxd0eO0bW09JjPtp61hYJNZpUXKQPBcs Wn52DXZ85xIuYH0PO0ucz4vCxRA82GpZyYM5xdj1rM28Z1pM3TGAbeQSErkad2u3EwYJ yzeA== 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=xUFlq6ieDM/DBTmG0i31Huyc63kW9fpny2rN0ro6jaE=; b=AewA+cJS52OEG2UiUO1RJuY1hOHLR3/9436+e4pyVcDnwjfx5rJtRTmQeBUsdJhxLR zDKiB1i38OG+r9JNvxrsqTXCFdr4QLQFheg0+jV8JzhtnqM43QgsOoG60r5Rjl7ECelX 88WbHlZ6j18SRj1/wtUjvrp/O5qE6Qt7PGu/DUGrznq2+Mbf9DUJQv/GHIShMYc7E8zc GR3U13d7L1tMjSXxGOh3kFfDaOWtucHCnVSqu5nJ8xNCUwrVvx5hmJidFu53kRf5MVbZ njdN9oqkHQqodMODBeBQsPqblyLTgtIWNiwAnxMHDSg1Pd7ZVpTZYH5BDC4+Rw2Xa+SA RuIA== 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 q14si17864139pgg.521.2019.05.07.10.33.15; Tue, 07 May 2019 10:33:32 -0700 (PDT) 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 S1727417AbfEGRc0 (ORCPT + 99 others); Tue, 7 May 2019 13:32:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:55984 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726256AbfEGRc0 (ORCPT ); Tue, 7 May 2019 13:32:26 -0400 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 E641BAEA3; Tue, 7 May 2019 17:32:24 +0000 (UTC) Date: Tue, 7 May 2019 19:32:24 +0200 From: Michal Hocko To: Sasha Levin Cc: Linus Torvalds , Alexander Duyck , LKML , stable , Mikhail Zaslonko , Gerald Schaefer , Mikhail Gavrilov , Dave Hansen , Alexander Duyck , Pasha Tatashin , Martin Schwidefsky , Heiko Carstens , Andrew Morton , Sasha Levin , linux-mm Subject: Re: [PATCH AUTOSEL 4.14 62/95] mm, memory_hotplug: initialize struct pages for the full memory section Message-ID: <20190507173224.GS31017@dhcp22.suse.cz> References: <20190507053826.31622-1-sashal@kernel.org> <20190507053826.31622-62-sashal@kernel.org> <20190507170208.GF1747@sasha-vm> <20190507171806.GG1747@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507171806.GG1747@sasha-vm> 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 Tue 07-05-19 13:18:06, Sasha Levin wrote: > On Tue, May 07, 2019 at 10:15:19AM -0700, Linus Torvalds wrote: > > On Tue, May 7, 2019 at 10:02 AM Sasha Levin wrote: > > > > > > I got it wrong then. I'll fix it up and get efad4e475c31 in instead. > > > > Careful. That one had a bug too, and we have 891cb2a72d82 ("mm, > > memory_hotplug: fix off-by-one in is_pageblock_removable"). > > > > All of these were *horribly* and subtly buggy, and might be > > intertwined with other issues. And only trigger on a few specific > > machines where the memory map layout is just right to trigger some > > special case or other, and you have just the right config. > > > > It might be best to verify with Michal Hocko. Michal? > > Michal, is there a testcase I can plug into kselftests to make sure we > got this right (and don't regress)? We care a lot about memory hotplug > working right. As said in other email. The memory hotplug tends to work usually. It takes unexpected memory layouts which trigger corner cases. This makes testing really hard. -- Michal Hocko SUSE Labs