Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35308 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbbHAUky (ORCPT ); Sat, 1 Aug 2015 16:40:54 -0400 Message-ID: <1438461643.3225.39.camel@decadent.org.uk> Subject: Re: [2.6.32 regression] lzo fails crypto self-tests From: Ben Hutchings To: Willy Tarreau Cc: stable Date: Sat, 01 Aug 2015 21:40:43 +0100 In-Reply-To: <20150801202614.GA22783@1wt.eu> References: <1438450414.3225.22.camel@decadent.org.uk> <20150801202614.GA22783@1wt.eu> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ieB/g3bCgyOM6TugHhkr" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-ieB/g3bCgyOM6TugHhkr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2015-08-01 at 22:26 +0200, Willy Tarreau wrote: > Hi Ben, >=20 > On Sat, Aug 01, 2015 at 06:33:34PM +0100, Ben Hutchings wrote: > > Linux 2.6.32.64 included an update to the lzo compression code. So far > > as I know, there is nothing wrong with it, but it no longer matches the > > test vectors in crypto/testmgr. Please cherry-pick this fix: > >=20 > > commit 0ec7382036922be063b515b2a3f1d6f7a607392c > > Author: Markus F.X.J. Oberhumer > > Date: Sun Oct 14 15:39:04 2012 +0200 > >=20 > > crypto: testmgr - update LZO compression test vectors >=20 > Noted, thank you for the information. I don't understand much the problem > you spotted since the change only applies to decompression while the patc= h > above seems to only adjust the compression patterns (I don't know how the > compression tests work though). Also, for the fix to behave differently, > it requires slightly more than 16 million consecutive 255 bytes to trigge= r > the error path, which the commit above doesn't seem to perform. >=20 > But I'm queuing this patch anyway. You applied this before the fix: commit bf1d894fed5852708a989a0a3f5df1a169a06afc Author: Markus F.X.J. Oberhumer Date: Mon Aug 13 17:25:44 2012 +0200 lib/lzo: Update LZO compression to current upstream version and that's what breaks the self-tests. You can see this by trying to load the ubifs module, which uses lzo via the crypto API. Ben. --=20 Ben Hutchings One of the nice things about standards is that there are so many of them. --=-ieB/g3bCgyOM6TugHhkr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUAVb0uy+e/yOyVhhEJAQrWuRAApjNJNGaA4Xd/ex6aPAfQhPDaJh0VsfAq 7AjpbMuEaaJ+K7aNTIBngpwOFhwK364t7ukX6qTbbRF7sdN67L5ueIx49HBt+EVu zoYZgENKgooC9KJVdSPJRjIrgT6jbpfvmb4thfWoJw+eMt7VSJPcLWJ/M4NWDWOs C0S31iFtLOOwWVHBwIDlE+Gv3jtLjHhbHdoZHzOcRdZHyZe4EbjaONyLdbcwSqTr 7Z6P+NGp4ewjuo7rhDAHyRMold581+QRY8Ndk6IjBkRN5CXIhjQXcCBe2z3a0VxC fifMfQRKIiFbuo5j11wwpYRmykwEGQovhqHGcsSAqA5AxccvKxFwiXvVXJ2jJWGb 4dBV3kRZOfDattlOVXnyFszuGFWpVKggklGeWV010vZBy+Z6PteJ8A2kEc06r9Tm lsByk7dINfa36ZSLAJn6I8noXRNceisMnCHqaS7FIYcdL6CLkPualzXT2LFjPSem ncyJ8lfy9uaMdCkQpuwTVyHcvmrw6ezOJrq/G1/BdKci0aiDaPHJXQyhsahiTbTw 2tTUAsv7Kr39K6opmy8DYuvGEu284TllLGI1y3aBv+H8Icw7wk5KD2YkhBt9Oi+/ iUzqOSVbpQZwWUq/Cvg29FnnvYubJv8J549BmL/EyV+pFT/tj1p79Doj51yHIbee CYCyD7Kw4/E= =MFDr -----END PGP SIGNATURE----- --=-ieB/g3bCgyOM6TugHhkr--