From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [PATCH] x86/efi: Only pass mapped RAM regions to free_bootmem_late() Date: Thu, 05 Jun 2014 07:43:44 -0700 Message-ID: <53908220.4030208@intel.com> References: <1401974854-7716-1-git-send-email-matt@console-pimps.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1401974854-7716-1-git-send-email-matt@console-pimps.org> Sender: linux-kernel-owner@vger.kernel.org To: Matt Fleming , linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alan Cox , Matt Fleming , Matthew Garrett , Borislav Petkov List-Id: linux-efi@vger.kernel.org On 06/05/2014 06:27 AM, Matt Fleming wrote: > free_bootmem_late() expects to only be passed RAM regions that the > kernel can access, and that have a corresponding 'struct page'. It's > possible for regions in the EFI memory map to reside in address ranges > for which pfn_to_page() doesn't work, for instance when running on an > i386 system with CONFIG_HIGHMEM=n. FWIW, I think there are also a bunch of ways to hit this if someone uses mem=, even on 64-bit.