From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH V3] xen: Check if the range is valid in init_domheap_pages Date: Wed, 20 Nov 2013 16:09:33 +0000 Message-ID: <528CDEBD.8060508@citrix.com> References: <1384349870-4256-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VjALS-0005cL-OU for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 16:09:38 +0000 In-Reply-To: <1384349870-4256-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Keir Fraser , ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, patches@linaro.org, tim@xen.org, Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 11/13/2013 01:37 PM, Julien Grall wrote: > On ARM, when an initrd is given to xen by U-boot, it will reserve the memory in > the device tree. > In this case, when xen decides to free unused memory, dt_unreserved_regions > will call init_domheap_pages with the start and the end of range equals. But > the latter assumes that (start > end), if not Xen will hang because the > number of pages is equals to (unsigned)-1. > > Signed-off-by: Julien Grall > CC: Keir Fraser > CC: Jan Beulich Ping ? Without this commit, the user is unable to pass initrd to dom0 on ARM. -- Julien Grall