From: Ian Campbell Subject: Re: [PATCH V2] xen: Check if the range is valid in init_domheap_pages Date: Wed, 13 Nov 2013 14:40:46 +0000 Message-ID: <1384353646.5406.126.camel@kazak.uk.xensource.com> References: <1384348525-3230-1-git-send-email-julien.grall@linaro.org> <52838BFC0200007800102DBE@nat28.tlf.novell.com> <52837FD0.2030303@linaro.org> <528396C60200007800102E5B@nat28.tlf.novell.com> <1384352322.5406.122.camel@kazak.uk.xensource.com> <52839B880200007800102E8B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vgbck-0000G3-Rw for xen-devel@lists.xenproject.org; Wed, 13 Nov 2013 14:40:55 +0000 In-Reply-To: <52839B880200007800102E8B@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , patches@linaro.org, Julien Grall , tim@xen.org, xen-devel@lists.xenproject.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2013-11-13 at 14:32 +0000, Jan Beulich wrote: > I'm just > trying to point out that there must be something wrong with > how the function is being called (and that if it was called with > proper arguments, the issue would have shown up in the first > place). I don't think any one has disputed that the inputs are invalid or that the caller could be changed instead. I think it is better to make this function more liberal in what it accepts (by rejecting certain invalid constructs) than to add complexity to all the callers. Ian.