From: robsonde@gmail.com Subject: Re: [PATCH 2/2] Revert "xfrm: Fix stack-out-of-bounds read in xfrm_state_find." Date: Sun, 24 Dec 2017 07:10:30 +1300 Message-ID: <20711E45-B316-42D6-B83D-4EB7B823C3C2@gmail.com> References: <1510826440-19452-1-git-send-email-steffen.klassert@secunet.com> <1510826440-19452-3-git-send-email-steffen.klassert@secunet.com> <20171223092217.4wbnjhpw2itbzaty@gauss3.secunet.de> <20171223.105612.1264946295573777970.davem@davemloft.net> <20171223160938.rmfwopbmeyepndh5@gauss3.secunet.de> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: David Miller , herbert@gondor.apana.org.au, netdev@vger.kernel.org To: Steffen Klassert Return-path: Received: from mail-pl0-f66.google.com ([209.85.160.66]:32992 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbdLWSKl (ORCPT ); Sat, 23 Dec 2017 13:10:41 -0500 Received: by mail-pl0-f66.google.com with SMTP id 1so13200169plv.0 for ; Sat, 23 Dec 2017 10:10:41 -0800 (PST) In-Reply-To: <20171223160938.rmfwopbmeyepndh5@gauss3.secunet.de> Sender: netdev-owner@vger.kernel.org List-ID: > On 24/12/2017, at 5:09 AM, Steffen Klassert = wrote: >=20 >> On Sat, Dec 23, 2017 at 10:56:12AM -0500, David Miller wrote: >> From: Steffen Klassert >> Date: Sat, 23 Dec 2017 10:22:17 +0100 >>=20 >>>> On Thu, Nov 16, 2017 at 11:00:40AM +0100, Steffen Klassert wrote: >>>> This reverts commit c9f3f813d462c72dbe412cee6a5cbacf13c4ad5e. >>>>=20 >>>> This commit breaks transport mode when the policy template >>>> has widlcard addresses configured, so revert it. >>>>=20 >>>> Signed-off-by: Steffen Klassert >>>=20 >>> David, can you please queue this one up for v4.14-stable? >>> Commit ID is 94802151894d482e82c324edf2c658f8e6b96508 >>>=20 >>> v4.14 is unusable for some people without this revert. >>=20 >> Yes, but it adds back the stack out-of-bounds bug. >>=20 >> If I queue up the revert, I would also need to queue up whatever >> follow-on you used to fix the out-of-bounds bug properly. Which >> commit is that? >=20 > This is commit ddc47e4404b58f03e98345398fb12d38fe291512 > ("xfrm: Fix stack-out-of-bounds read on socket policy lookup.") >=20 > It is included in the pull request for the net tree that > I sent yesterday. The patch looks save, but not so sure > if it should go directly to stable. These bugs reported by > the syzbot are usually quite subtile and I already broke > something when I tried to fix the original stack out-of-bounds > bug. So maybe we should wait until the v4.15 release before > backporting... >=20 At this time I cant build an IPSec VPN on a 4.14 kernel. 4.14 is LTS and so h= as been used as kernel choice for a prod system. This is a production fault.= My only choice is going back to a 4.13 or waiting for 4.15 or a custom build= , which I am not keen on. Unless the memory bug effects security and can be exploited, then I ask that= the revert be back ported to 4.14 Thanks=