Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751695AbdLAJTe (ORCPT ); Fri, 1 Dec 2017 04:19:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:41399 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbdLAJTc (ORCPT ); Fri, 1 Dec 2017 04:19:32 -0500 Date: Fri, 1 Dec 2017 10:19:30 +0100 From: Michal Hocko To: Dave Young Cc: linux-kernel@vger.kernel.org, pasha.tatashin@oracle.com, linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: [PATCH] mm: check pfn_valid first in zero_resv_unavail Message-ID: <20171201091930.5ddygjl23owfovrz@dhcp22.suse.cz> References: <20171130060431.GA2290@dhcp-128-65.nay.redhat.com> <20171130093521.3yxyq6xvo6zgaifc@dhcp22.suse.cz> <20171201085657.GA2291@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171201085657.GA2291@dhcp-128-65.nay.redhat.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 540 Lines: 15 On Fri 01-12-17 16:56:57, Dave Young wrote: > On 11/30/17 at 10:35am, Michal Hocko wrote: [...] > > Can we exclude that range from the memblock allocator instead? E.g. what > > happens if somebody allocates from that range? > > It is a EFI BGRT image buffer provided by firmware, they are reserved > always and can not be used to allocate memory. Hmm, I see but I was actually suggesting to remove this range from the memblock allocator altogether (memblock_remove) as it shouldn't be there in the first place. -- Michal Hocko SUSE Labs