Received: by 10.213.65.68 with SMTP id h4csp1213423imn; Wed, 28 Mar 2018 23:52:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+XayqbaZuSXo+CIUX8b1HWtX4uWkv1w+sl2QoPxTTydnY/ODM3lzPGheTWddVFV4L8fga X-Received: by 10.98.31.216 with SMTP id l85mr5285781pfj.80.1522306355341; Wed, 28 Mar 2018 23:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522306355; cv=none; d=google.com; s=arc-20160816; b=yMbVxlyEdO2zDkxK8c8Oihnw7mDfW8WSgrS84hfXvPOhQFCatN5Xmj0ajGezS9roYC ChMpMsexZwqRpNIFUr41o1e0xINiO6n11FFABxl/mia6csWK8lgSV953LIZL/I568eGp 6ZQmYbOZDw3vCinz5BJbtnijmEoZYfnWAELYwcpFUzEuXZWz5KyG8Gr0T4Zg5zoXNfdl xH6YZwdrgWO4FR/4LPF0RN0EyB60gY3ubP6Hkpi2mAP5+9AxuxpBMjadJzoGhzyLb4wL 1U1GqWA2Rts5oUyL6ntFoQxDqGDMLOCg5YLc5lFtavEAXQW64T3WfzQJq6H41aN3Mazp n9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=T6bDoeJSKenSp2789RxCXuBE/+D0p8LakWw45MxW62I=; b=tNcnlb8FNF5FQFIguQjhgLSHuXXyEJJKmpm7gQXINIsOFJu8EJPlL4lXg6HYim/QKF Wk/J1lPXbc0Pw2r64DAdPgp6DuYx/ffezJrVhZmtLbTxFSXYvvm+xxZaWhtQuYaNPkAa CV6Si8bk2TQDMbtqOSZZtZHli+uXOBKdU6CQjsg2AEGOVTPhZVSpCERBmfTEF1YUusTX IaXh3J3zJ5V006SlFk0GGc5b52cuEfju6Yb5fL0xTz/ZZwQHaiMeH/h/6j6FxIZE2A1O cWu1N33D4gLDJypI7OBHeuY5cjpzsDyN1+s0OBnrjfhnp0Mi6JEd+F7E2Vi8zQHwtt19 4/nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5-v6si5109028pll.325.2018.03.28.23.52.21; Wed, 28 Mar 2018 23:52:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751193AbeC2Gva (ORCPT + 99 others); Thu, 29 Mar 2018 02:51:30 -0400 Received: from a.mx.secunet.com ([62.96.220.36]:52676 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeC2Gv3 (ORCPT ); Thu, 29 Mar 2018 02:51:29 -0400 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 1A35C2017F; Thu, 29 Mar 2018 08:51:28 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FX5q8lBZiJLP; Thu, 29 Mar 2018 08:51:27 +0200 (CEST) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 990AE20096; Thu, 29 Mar 2018 08:51:27 +0200 (CEST) Received: from gauss2.secunet.de (10.182.7.193) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server id 14.3.389.1; Thu, 29 Mar 2018 08:51:26 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 2CFAA3180FA1; Thu, 29 Mar 2018 08:51:27 +0200 (CEST) Date: Thu, 29 Mar 2018 08:51:27 +0200 From: Steffen Klassert To: Derek Robson CC: Herbert Xu , , , Subject: Re: Regression in 4.16-rc7 - ipsec vpn broken Message-ID: <20180329065127.yn6sm3xvs2givubo@gauss3.secunet.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: 8BACC077-052A-431B-9F83-CCCF15358D76 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please always make sure to Cc netdev@vger.kernel.org on networking problems. On Wed, Mar 28, 2018 at 10:21:32PM +0000, Derek Robson wrote: > The ipsec VPN is broken in 4.16-rc7 and seem to have been broken in all of > 4.15 > > connecting from an iphone seems to give a timeout. > > > A bisect brings me to this commit as the one that is the issue. > > commit: acf568ee859f098279eadf551612f103afdacb4e (xfrm: Reinject > transport-mode packets through tasklet) I have a fix queued for this commit in the ipsec tree. Can you please try if the patch below fixes your problems? Thanks! Subject: [PATCH] xfrm: Fix transport mode skb control buffer usage. A recent commit introduced a new struct xfrm_trans_cb that is used with the sk_buff control buffer. Unfortunately it placed the structure in front of the control buffer and overlooked that the IPv4/IPv6 control buffer is still needed for some layer 4 protocols. As a result the IPv4/IPv6 control buffer is overwritten with this structure. Fix this by setting a apropriate header in front of the structure. Fixes acf568ee859f ("xfrm: Reinject transport-mode packets ...") Signed-off-by: Steffen Klassert --- net/xfrm/xfrm_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 1472c0857975..81788105c164 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -26,6 +26,12 @@ struct xfrm_trans_tasklet { }; struct xfrm_trans_cb { + union { + struct inet_skb_parm h4; +#if IS_ENABLED(CONFIG_IPV6) + struct inet6_skb_parm h6; +#endif + } header; int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb); }; -- 2.14.1