From: Espen Skoglund Subject: Re: [PATCH] Make ACPI DMAR parsing more robust Date: Thu, 3 Apr 2008 11:32:23 +0100 Message-ID: <18420.45623.275037.792181@gargle.gargle.HOWL> References: <18419.47951.625663.623377@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, Espen Skoglund List-Id: xen-devel@lists.xenproject.org Right. Depth *should* always be >= 1, but from my experience one can not always trust the info in the tables to be correct. Better be on the safe side. eSk [Keir Fraser] > Regarding the table length sanity check -- depth is set to the > number of acp_pci_path structures in the table. But then we only > follow the path to depth-1. Is that correct? > Also I changed the test to '--depth >= 0' which is equivalent and a > bit easier to read imo. > -- Keir > On 2/4/08 17:58, "Espen Skoglund" wrote: >> Parsing ACPI related VT-d tables may cause infinite loop due to u8 >> value wraparound. Also add sanity check on table length entry. >> >> eSk >> >> >> Signed-off-by: Espen Skoglund >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel