From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.96.220.36 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796281109; b=wRQLTS9u5wip2FEDVZkS2fs8uzwhn0rf54tTW9tZe/A+exxgl/dVG/7jDG/VGY76XWRq 3mTxDancSlstKOX9SDzxh05hmhZmruXvtvfcwoKDmdDN7p0TEEqerygoA7pm2y9uAvra3 c7YSNbxg12eT/yTChVaY9cOPV+leBfK3PdKmvxJEIJUtXp1LqVY+QFJa4jrpgSblT6J64 EJxgZxRwvoCCzbvjtfSz5KGfclhNrJFIBE++zmdk7RxRYCuGpeoMgLFdukQU0S9rEsJJ7 UL6zTZs2Awhp1mkRhYbTwsbsKi2L+hjFLqsbiE0tOUzPrdU/6woMHDv0WewQqdNGexg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796281109; h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter: DKIM-Signature:Received:Received:Date:From:To:CC:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To:X-ClientProxiedBy; bh=bQCxTt+TI3ndpbYr7YefVG4l8RIUvKXXySCJzHf7/Ak=; b=OK4bSXgDB0y0lrU4By3SJeVru3MtMO4M97Y2t2rfKPmH2QdKP75ClYKmb6Y/d6+Eul5X 5yKCy04F/7q/Llnguoq6Q3CEvrNIj4oWvn8tkLePuxDaEcQWbMMIGccovv+4MQgmmSPSL qdt8mRmIv78BSe+mZoqoLAbAUGdLH/02sEcD2CSfBlHS03Sz6HWMfc3GHti8Lb+wu/ODW UC82g53RRtuWi0sKWIEpOmxI6baA3UD0UKMe1BmpAzQ46oSnYiXOjYJXEyEtM4cTK0a1F pzXHfqlouM23SPLpyMoPLqD2tr26p+tjAcD2YlJ4IU8acJK1rWecVuA500rN4utF/tA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=Ns+Vxc3X; arc=none smtp.remote-ip=62.96.220.36 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18119606A322 for ; Thu, 3 Dec 2026 06:58:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 18119606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=Ns+Vxc3X Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 013FE2084B; Thu, 3 Dec 2026 07:58:26 +0100 (CET) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wBQ2g8htJCf1; Thu, 3 Dec 2026 07:58:25 +0100 (CET) Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 68667207BB; Thu, 3 Dec 2026 07:58:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 68667207BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1796281105; bh=bQCxTt+TI3ndpbYr7YefVG4l8RIUvKXXySCJzHf7/Ak=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=Ns+Vxc3X/VCANHzSXrMq9Ll/cstjbVQvSIdVAboEUO6lUhdOlZiQNDIHZW4IU02IW NUNnvUIFfgpCF+3PhLIBJ5eXoBWhhBgX8BnyESC/KRu21PZDii7Kat5yrY1uuaor3x iAlr9oqbEfvecj2oOiZjw4pWaDOoniBPSKSfgYwN7WxWF64zNlyol7YL39aS31FDWj RCdBK2E7nzYzX6ApIW7lJuQd/AoL4PhPkwLpFBG+C2JMdIhUT2XN2Inioi/bhC9vnI 7cJlo2FAzPTQvxpbykli6314F5/Gmmuucmx+wwoG6jnG7BTE8K9JotuEZifMfnb8sT 2hJnEl7FqWXGQ== Received: from gauss4 (10.182.7.102) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 3 Dec 2026 07:58:25 +0100 Received: (nullmailer pid 980280 invoked by uid 1000); Thu, 03 Dec 2026 06:58:24 -0000 Date: Thu, 3 Dec 2026 07:58:24 +0100 From: Steffen Klassert To: CC: , , , , Sewook Seo Subject: Re: [PATCH 07/22] xfrm: check inner family via skb_dst for small_ipv6 DF clearing Message-ID: References: <20261201124252.1163254-8-steffen.klassert@secunet.com> <179621714695.3146.588817331654404931@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <179621714695.3146.588817331654404931@kernel.org> X-ClientProxiedBy: EXCH-01.secunet.de (10.32.0.171) To EXCH-01.secunet.de (10.32.0.171) Ccing the author of the patch. On Wed, Dec 02, 2026 at 01:12:26PM +0000, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue(s) to consider. > > Critical: 0 · High: 1 · Medium: 0 · Low: 0 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] This patch fixes the family test, but small_ipv6 in > xfrm4_tunnel_encap_add() (net/xfrm/xfrm_output.c:283-284) is still… > > -- > > xfrm: check inner family via skb_dst for small_ipv6 DF clearing > > This commit changes the small_ipv6 test in xfrm4_tunnel_encap_add(). It > now checks dst->ops->family == AF_INET6 instead of skb->protocol, because > xfrm4_prepare_output() has already set skb->protocol to ETH_P_IP. The aim > is to clear the outer IPv4 DF bit when the inner IPv6 frame is 1280 bytes > or less. > > > diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c > > index f1f612cd7b438..60ffe9549c094 100644 > > --- a/net/xfrm/xfrm_output.c > > +++ b/net/xfrm/xfrm_output.c > > @@ -275,11 +275,14 @@ static int xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) > > */ > > static int xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) > > { > > - bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU); > > struct dst_entry *dst = skb_dst(skb); > > struct iphdr *top_iph; > > + bool small_ipv6; > > int flags; > > > > + small_ipv6 = (dst->ops->family == AF_INET6) && > > + (skb->len <= IPV6_MIN_MTU); > > + > > [Severity: High] > Does this test still give the wrong answer for GSO skbs that take the ESP > offload path? > > The commit message says that "skb->len still holds the unencapsulated > inner packet length". On this path, though, skb->len appears to be the > length of the whole unsegmented GSO skb. Not a regression of this patch. The GSO path might have a similar issue. Can be fixed as a followup.