From: Ian Jackson Subject: Re: [PATCH 2/2] lzo: check for length overrun in variable length encoding Date: Tue, 4 Nov 2014 11:24:48 +0000 Message-ID: <21592.46976.780608.557136@mariner.uk.xensource.com> References: <5457A3AD020000780004478B@mail.emea.novell.com> <5457A71802000078000447AA@mail.emea.novell.com> 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 1XlcEG-00083s-Qb for xen-devel@lists.xenproject.org; Tue, 04 Nov 2014 11:24:52 +0000 In-Reply-To: <5457A71802000078000447AA@mail.emea.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: Ian Campbell , xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org Jan Beulich writes ("[PATCH 2/2] lzo: check for length overrun in variable length encoding"): > This fix ensures that we never meet an integer overflow while adding > 255 while parsing a variable length encoding. It works differently from > commit 504f70b6 ("lzo: properly check for overruns") because instead of > ensuring that we don't overrun the input, which is tricky to guarantee > due to many assumptions in the code, it simply checks that the cumulated > number of 255 read cannot overflow by bounding this number. AFAICT this decompressor is exposed to untrusted guest kernel images. Ian.