Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1449579ybn; Wed, 25 Sep 2019 18:47:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOBnA0lqLqylMwXoKM2KPUm7GxpLvO7tw74ywRFj0JOUsJUgBu57A0xWJ0Y3iDwZ5oQb/i X-Received: by 2002:a17:906:c787:: with SMTP id cw7mr1073629ejb.34.1569462421140; Wed, 25 Sep 2019 18:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569462421; cv=none; d=google.com; s=arc-20160816; b=ojAks65TBU4z3orcvbMwIaViD4b7dQJ+u1avz4aUE3dj515LAjxLKk+6G6DVfdwK0H bYYrEWSVm9rMbYCBMQKzfp9to+kF89UsvyT8MmyVMUdVfDJC3F6nN05IyUQICveZMyEe /U7IXxYnwNVfO/3d3xDs94uuQrXC026NP7NBK8yrbFiKLH6biXbap/vgOzupFUkrjuZd SarmqlVrxN5v87URRuxZ2uLocpmLny8v+vP1X3wym0vF3wkA6l1vi7yAbG9ocdNXfm12 E29aVjtvQWYv6iA4p7lPWRH4I0qOpk2hXqBgq0+lTbby3yMI8N1KMaipM8BYUhNfRi2M MXfA== 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=Bztv1D+eGqY1DHDAqNP+DnHZehYbrmDY/rDg4/hHcYs=; b=v3pektAtbQudF86Y8gCtUcFRIq5pqgVgyjRq5t0zLZAy68gk7ooq78Af7bC4YOOtPm 6mzM/ddmg83hGcKMsEooDyxbq4RZJTrLiNa28Cvi5MbRhuQWZzGeSzYKrxonLYwDfx4b C3XxHSbHSkT45AZTYxCyK/w6mpezGj/0AH8LMVaygFsDzz0vCu1qchRjBIVWZfdhQ00s 8MgtrvVsEy7v0RyFlbdOqQyhdBwn4FbSKVes7hCoFQyhZqtsQ5V0YJJCJBmh9oQrVon2 rSnEQ2fIPTU73QHxI1slR7Lzp5y9JUZKg0L3ORvZjnF/lwZsy8ljD2amHwdwp4huxSpi hyUA== 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 br24si324251ejb.101.2019.09.25.18.46.37; Wed, 25 Sep 2019 18:47:01 -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 S2504790AbfIXLpL (ORCPT + 99 others); Tue, 24 Sep 2019 07:45:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:60158 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2504767AbfIXLpK (ORCPT ); Tue, 24 Sep 2019 07:45:10 -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 B0DBEB033; Tue, 24 Sep 2019 11:45:04 +0000 (UTC) Date: Tue, 24 Sep 2019 13:45:03 +0200 From: Michal Hocko To: David Hildenbrand Cc: Alastair D'Silva , Andrew Morton , Oscar Salvador , Pavel Tatashin , Dan Williams , Wei Yang , Qian Cai , Jason Gunthorpe , Logan Gunthorpe , Ira Weiny , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range() Message-ID: <20190924114503.GK23050@dhcp22.suse.cz> References: <20190917010752.28395-1-alastair@au1.ibm.com> <20190917010752.28395-2-alastair@au1.ibm.com> <20190923122513.GO6016@dhcp22.suse.cz> <25e0af4cb24a41466032d704b89d25559e7ad968.camel@d-silva.org> <20190924090934.GF23050@dhcp22.suse.cz> <32531671-77dd-7857-f34f-f73ea45f7e22@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32531671-77dd-7857-f34f-f73ea45f7e22@redhat.com> 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 24-09-19 11:13:31, David Hildenbrand wrote: > On 24.09.19 11:09, Michal Hocko wrote: > > On Tue 24-09-19 11:31:05, Alastair D'Silva wrote: > >> On Mon, 2019-09-23 at 14:25 +0200, Michal Hocko wrote: [...] > >>> This will result in a silent failure (unlike misaligned case). Is > >>> this > >>> what we want? > >> > >> Good point - I guess it comes down to, is there anything we expect an > >> end user to do about it? I'm not sure there is, in which case the bad > >> RC, which is reported up every call chain that I can see, should be > >> sufficient. > > > > It seems like a clear HW/platform bug to me. And that should better be > > reported loudly to the log to make sure people do complain to their FW > > friends and have it fixed. > > > > I don't agree in virtual environment. On s390x, MAX_PHYSMEM_BITS is > configurable. For example, if you have paravirtualized memory hotplug > (e.g., virtio-mem), you could add memory to the system that violates > this constraint. What happens if that is the case. Does the machine change the configuration in runtime or it needs a reboot? Anyway, seeing this to be the case in the log would help in whatever action is necessary to deal with the issue, right? -- Michal Hocko SUSE Labs