Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp358583pxb; Thu, 17 Feb 2022 05:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpKlGO1rNMBcDuS3ZegOl/xca5vTocv7uIrCl6AeDnnpx7/gWgsgHysG3sCFrb0BDbRnlL X-Received: by 2002:a17:90b:164f:b0:1b9:19de:ef67 with SMTP id il15-20020a17090b164f00b001b919deef67mr7352608pjb.101.1645105751569; Thu, 17 Feb 2022 05:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645105751; cv=none; d=google.com; s=arc-20160816; b=FNCjeQxAWenRAZE61EbVHCmhr8kSFobXaTEmrGIREOCprK4j0I7p/eZfB2ES0SU8QZ sCY7B7mszByoN4VMQAKrECCY1SOWopwairnC73DofOM6yL0Es7nyzJlUNGce2t6tnZTU aQOgIVlHyXsy1rgMu44/aYHGl4MmYSsII5R3bT4Urr/qg2jt83QMRsZqAtAHijyZEJqX gJUuiRB00gTZ71bFTkyZAdSfxKpiSC5pAaM3yov2D6Z75BIHAtD9buWDPH3q+inzPAST Cvfa2vj6DUv/jAeHwUgNumfiFdSYtAqErURVqbPMzGFJJae+YgLzT/tKBYlp4XOi7Z2d D9KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eMoY/UclmOzHHpj7q9oQ/Af/xKLviGmGe8f60N9+gmY=; b=QOkQRW6bFky80rR9DCx6fSLDrLfU/0glNv/GOQulyRN3Q8BpwD5b5z2qM0NLpgFnXB M647zk62vv5og7idIlrNmDKNM9BrPEZH4Bryb7ZFAI+Ax5xfLiKEH+ZymwOoqbecm/bj CupRHzdMLNYG5VWhu+1GozDbyZ2fcTcVK+4Al1OJgeV/W/qeEWp/ojanBRB0ylJkbxGx xxxSYLInI9SPzg/zXuJ3H1au/P5FE/MKlxnwJIUdcpCXKhwp84S6KBgU25LISDR157pS YJUOsw4z0Xs+HQe/9Xyb47mY/UHXcDQElqLrzbu+FGC7gILoJuFQr9KrWrUB/iQxu5so 989A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SNP965VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4si826679pjy.90.2022.02.17.05.48.53; Thu, 17 Feb 2022 05:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SNP965VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbiBQDFd (ORCPT + 99 others); Wed, 16 Feb 2022 22:05:33 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbiBQDFc (ORCPT ); Wed, 16 Feb 2022 22:05:32 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F48823D5D5; Wed, 16 Feb 2022 19:05:19 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id h125so3816306pgc.3; Wed, 16 Feb 2022 19:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eMoY/UclmOzHHpj7q9oQ/Af/xKLviGmGe8f60N9+gmY=; b=SNP965VUfhZXrVmh8kTvPSsUo8uMC1jyZXYcE//TNFlPTGHB9dXy4htdU3q6jLFr/h n/aaksqxMzXOFAPyNiluL1tEVo5gJbuBJAn7EbMdBfSMh252KspUFNvtuDIvgSSfIvf0 6AZDUBq3v4fSDSO1sic7C7luXkosniXoMwvKe4FV7AUNHqdYjXOIdo96Y1EVvpdi+RLA HDdX9eDaVGNjmE/oUN7AxsVDQsfk18Gn9DOknMXwy0Q0Xv716a0sqITsqhxGQDgjxIzw j9rNWSGHzwWEix4lRiwo2f/OMZoGldMBq719xPT6ATBYzi733Ub75qC+1wTZQ6ORVqNV OR9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eMoY/UclmOzHHpj7q9oQ/Af/xKLviGmGe8f60N9+gmY=; b=JTeorBLOByEpbSTg7kV8+fXea2s7sNMnwC1ahSgHgVZQAN5nQXrJo8teO6O3Wd8rsf 67muaWi7PI2EaoeVEIGrWaKlTQ36+3WoRC7VOnvofKOMvDNWRZDHnuqfvDhr1jCAL0vE edljVaJJCyht66qFQuU0BnhM9t6L2RK4Se35JgDG0BVNKq0xkRCwvtElVlXLZ5lr5bNG 85Ge1qOlQL6Cu6hcsyK4vpJVG5pch3ALbsvVMN49zuBAQ5O6+jPUKnWodYnbb8eta/k5 Bt6su1M6M7fEUriAtrbIPhvJSXsjMfBigEZO0Vxsv5UH/WoKFtEVZj86RuV/1Tsita4u aO8g== X-Gm-Message-State: AOAM531uSO4z8dRtlnIlmQroJXPvCNQ+nrfR23Tq/LSmlyrw8tYLFM+Q Eo1djBPBsInqEXlb95UXRFeuHXk3qzbRwZuQk9g= X-Received: by 2002:a05:6a00:1146:b0:4c9:ede0:725a with SMTP id b6-20020a056a00114600b004c9ede0725amr897542pfm.35.1645067118729; Wed, 16 Feb 2022 19:05:18 -0800 (PST) MIME-Version: 1.0 References: <20220216073055.22642-1-lina.wang@mediatek.com> In-Reply-To: <20220216073055.22642-1-lina.wang@mediatek.com> From: Alexei Starovoitov Date: Wed, 16 Feb 2022 19:05:07 -0800 Message-ID: Subject: Re: [PATCH v3] net: fix wrong network header length To: Lina Wang Cc: "David S . Miller" , Jakub Kicinski , Matthias Brugger , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Network Development , LKML , linux-arm-kernel , linux-mediatek@lists.infradead.org, bpf , =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , Willem de Bruijn , Eric Dumazet Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 15, 2022 at 11:37 PM Lina Wang wrote: > > When clatd starts with ebpf offloaing, and NETIF_F_GRO_FRAGLIST is enable, > several skbs are gathered in skb_shinfo(skb)->frag_list. The first skb's > ipv6 header will be changed to ipv4 after bpf_skb_proto_6_to_4, > network_header\transport_header\mac_header have been updated as ipv4 acts, > but other skbs in frag_list didnot update anything, just ipv6 packets. Please add a test that demonstrates the issue and verifies the fix.