From: Steffen Klassert Subject: Re: [PATCH ipsec-next 1/2] xfrm: reset transport header back to network header after all input transforms ahave been applied Date: Mon, 3 Sep 2018 10:20:08 +0200 Message-ID: <20180903082008.GN23674@gauss3.secunet.de> References: <9cd59eabecd0263b3d8960f3c0c7de435094b82a.1535712205.git.sowmini.varadhan@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , To: Sowmini Varadhan Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:33512 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbeICMjO (ORCPT ); Mon, 3 Sep 2018 08:39:14 -0400 Content-Disposition: inline In-Reply-To: <9cd59eabecd0263b3d8960f3c0c7de435094b82a.1535712205.git.sowmini.varadhan@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, Sep 02, 2018 at 04:18:42PM -0700, Sowmini Varadhan wrote: > A policy may have been set up with multiple transforms (e.g., ESP > and ipcomp). In this situation, the ingress IPsec processing > iterates in xfrm_input() and applies each transform in turn, > processing the nexthdr to find any additional xfrm that may apply. > > This patch resets the transport header back to network header > only after the last transformation so that subsequent xfrms > can find the correct transport header. > > Suggested-by: Steffen Klassert > Signed-off-by: Sowmini Varadhan This patch is a fix, so please add a proper fixes tag so that it can be backported to the stable trees. Same applied to the other patch in this series.