From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen: arm: bootfdt: Avoid reading off the front of *_cells array Date: Thu, 16 Jul 2015 14:06:06 +0200 Message-ID: <55A79E2E.3090201@citrix.com> References: <4EE5B48738DDED408878C97C8E050A8B1D7D1A0A@SJEXCHMB05.corp.ad.broadcom.com> <1437036607-1737-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1437036607-1737-1-git-send-email-ian.campbell@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: Ian Campbell , stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org Cc: "Chris (Christopher) Brand" List-Id: xen-devel@lists.xenproject.org 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 Regards, -- Julien Grall