Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1652224imu; Thu, 10 Jan 2019 00:12:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Oqc2zBylMa0jaqV09/zqq36tdNw4d6rAKVXDIMRVDQmLdRbiMmoH9wcgveoPMYbiBpK+V X-Received: by 2002:a17:902:b592:: with SMTP id a18mr9393642pls.293.1547107976118; Thu, 10 Jan 2019 00:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547107976; cv=none; d=google.com; s=arc-20160816; b=mjLrtBPDflzG80Zm2UWfctbNyOINwhjkPLAEhvC5xHXvX7eFh6cUbUOMnBJw14DnuV 7iAfNsNZ4LSmJRhXcQKdvu9QBqMOWAACt2lg84XnrngJo8eHI4iisRj/09eQe6H8VcY4 lgvoSNtq+w02VzaYek8c9QidWwrNnVQxvHZztpGBCMMKE6X79gBZNqJqG+kP0h+LeFwO BVttXexohoBTeKX7w2eFSaRtpkDmg47Yfnaib+QOVS97rcTzEhTeG/i+KqCyFE/QMoAB rUleNwCmWEd2aAulK5RLoK0xkn1pgV5+Jxr/gq16/4UZqXBMOMbEmCda5CvPTZMgbk28 x7aA== 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; bh=OhhsBZhH1vJvg5koM7lXpOPl+ZPACvGxRgkNw5EnCo4=; b=fTjOV5hCIoXnuUC++sHk0HSyDMkYfL50CG5W2tSrclgGL3q9bxCMBcsEOBhdjfGJQJ Gp+J4QoCeeBJUpbeELyr9O9DGwESPni7wXTrvpvhYh2URMNDiZG4p6QK6TvbhYhK19Za 0ui76HjPyxYDnNpJsQAYcGipdFpBsjznxJ+YsEu+SAD3YMCSwhMyfBNRPKb1kCVoTRsj zIVJ/tai4GI9xKsbaLuFsqPET+eayyzbo0teOSdggYM/rSyqm7K9I9zoInEv+S6gFSE0 KweHxTkFX125WZIfCTEKqfxJe+nmxt0w1lh/2Y/xOQrsW8ERlW2mNiC46o3vBTuEisFW MTeg== 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 e2si32989749pgj.316.2019.01.10.00.12.40; Thu, 10 Jan 2019 00:12:56 -0800 (PST) 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 S1727665AbfAJILT (ORCPT + 99 others); Thu, 10 Jan 2019 03:11:19 -0500 Received: from a.mx.secunet.com ([62.96.220.36]:44682 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727414AbfAJILS (ORCPT ); Thu, 10 Jan 2019 03:11:18 -0500 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 814B9200AA; Thu, 10 Jan 2019 09:11:16 +0100 (CET) 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 zYJv8RnuE05S; Thu, 10 Jan 2019 09:11:16 +0100 (CET) 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 254032006F; Thu, 10 Jan 2019 09:11:16 +0100 (CET) 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.408.0; Thu, 10 Jan 2019 09:11:15 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id AFFEB31805AD; Thu, 10 Jan 2019 09:11:15 +0100 (CET) Date: Thu, 10 Jan 2019 09:11:15 +0100 From: Steffen Klassert To: Su Yanjun CC: , , , , , , Subject: Re: [PATCH v2] vti4: Fix a ipip packet processing bug in 'IPCOMP' virtual tunnel Message-ID: <20190110081115.GM3581@gauss3.secunet.de> References: <1546828280-26039-1-git-send-email-suyj.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1546828280-26039-1-git-send-email-suyj.fnst@cn.fujitsu.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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: 82F089C0-8112-4198-8458-7653549539FA X-G-Data-MailSecurity-for-Exchange-ProcessedOnRouted: True Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 06, 2019 at 09:31:20PM -0500, Su Yanjun wrote: > Recently we run a network test over ipcomp virtual tunnel.We find that > if a ipv4 packet needs fragment, then the peer can't receive > it. > > We deep into the code and find that when packet need fragment the smaller > fragment will be encapsulated by ipip not ipcomp. So when the ipip packet > goes into xfrm, it's skb->dev is not properly set. The ipv4 reassembly code > always set skb'dev to the last fragment's dev. After ipv4 defrag processing, > when the kernel rp_filter parameter is set, the skb will be drop by -EXDEV > error. > > This patch adds compatible support for the ipip process in ipcomp virtual tunnel. > > Signed-off-by: Su Yanjun Patch applied, thanks!