From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH] xen: arm: bootfdt: Avoid reading off the front of *_cells array Date: Thu, 16 Jul 2015 16:52:49 +0100 Message-ID: <1437061969.32371.235.camel@citrix.com> References: <4EE5B48738DDED408878C97C8E050A8B1D7D1A0A@SJEXCHMB05.corp.ad.broadcom.com> <1437036607-1737-1-git-send-email-ian.campbell@citrix.com> <55A79E2E.3090201@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55A79E2E.3090201@citrix.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: Julien Grall Cc: xen-devel@lists.xen.org, "Chris (Christopher) Brand" , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2015-07-16 at 14:06 +0200, Julien Grall wrote: > Hi Ian, > > On 16/07/2015 10:50, Ian Campbell wrote: > > In device_tree_for_each_node the call to the callback was using > > {address,size}_cells[depth - 1], which at depth 0 could read off the > > front of the array. > > > > We already handled this correctly in the rest of the loop so fixup > > this instance as well. > > > > Reported-by: Chris (Christopher) Brand > > Signed-off-by: Ian Campbell > > Cc: Chris (Christopher) Brand > > Good catch! Do you plan to backport to Xen 4.5 and apply to Xen 4.6? > > Reviewed-by: Julien Grall Applied and queue for backport, thanks.