From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.229.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795919533; b=DqT7CWwshkXLn5OOGKLwxwG28uxshi8b/bJEYaUeCI4zDVrEkGjuKLDUEhIw/U7b+ZeS LFnFfvPqVLRWppa+Zt0ACAD/0Cg7/8+AioDkMbj0gvaV91miH0h2+US7Wx89qQRSv8cWG x6LG16AqBmKFmNJqrmT42SJ+PvnPRnwAnGpsSkz4sI1cqauickKYEv8bggDX7ibtCwz4z kgvKQsFtg79iQIHfwMm+uJLuJM25W7I9ISG+9mbDGKRzqETYTE8XmjNZDOg4XQPSOrGig k5AWaKNwiseb0kv93GHKjmO3+EIN7r+dwMsx3HkY4hwOezSFQ7VHEb9gyCY6f+OW6NA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795919533; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=; b=lxC2lBqlMQjBh1Km/ZzDGKmwfJ+Mv8lmwoPu7fhMREW1iG8IFVhKD1uNF4Fbvxon2i8r 6PC2fpRXL8uSaL7utIXqnm6dnJeC9kLb6knkK6qQGLWJa4RURz2vQTltqDJ5wsrsjlzHg bFzs1wgCECqU/Mju7nXwTepr0oNB0BroQ5j44HmyUdZjT8ZGx72YTmPwo8wWMgO0Ndopo 7v5VNJJZ9Ha7s/abuDGyCJEr0q0ozbFzDsaATC5yWMTCbevWKWXMIAkgRAH6R8aAACrmN sUFreNBgpZ5AMSMA4rDf2jYDOkheA0jFnG++T3QOEwLwJGpYTXs4C1Fjv/FTPsXNh1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E2AMXOSn; arc=none smtp.remote-ip=74.125.229.8 Received: from mail-dy2-f8.google.com (mail-dy2-f8.google.com [74.125.229.8]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24233606A323 for ; Sun, 29 Nov 2026 02:32:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 24233606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E2AMXOSn Received: by mail-dy2-f8.google.com with SMTP id 5a478bee46e88-382afece6d8so2020067eec.1 for ; Sat, 28 Nov 2026 18:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795919532; x=1796524332; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=; b=E2AMXOSnavtkHdu3iGWSsTzxAgfeZdJnrNY07O133Wtty39SFZHaXPPJuCIqGaZLre jew00hoY2NKkLMFwOFBXsv7u68APJJE7oK8ydo+6sP8Y63SElq8xSKa5/HpeZ9DU4zxu ZXCoRYQATCceIt1YrliN7XQoRzfOpCL4PTFepw8oDThOXw04qHdMs+Jvxydg+8IP+FJ5 ceT3y20orUywvxWSO8EFPluvpGohW+h4p+MR3IkMGZdjgbaZa1ROXZbbB4gYIB3EKHX3 ylfnGTtPBMoMjrGSQ9604VQpG6l712xJ1zhESF9465KmO+CrUiOs2rxJZYKbtmIsFlPm M7dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795919532; x=1796524332; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=; b=jtblHUQVL8I5pAeTsAC9jRQKFFYtYw30M5UFvhGtv8Gz1HpQINnYZiHHKnKEpg7ytM hJsLxn8P75s8xzWDsoMt66qhKijFm39bdXBFScMugsu4LGVjT+6pXs6UH96I/z2XBXsz 961IO6h9tgReEa8avZ3YGh7rXnhVRPvTo2Zj7DjvymAGRLWLjqDv81vlKoY9sTfZ8i3W CCRfRzGwsp8WbtDsP9CNJvHO0VWvvOfzuu1vMHSlgfSAqKSEqVzXetbyEcUMS4YuvZX1 6pB0/Dg28owk3b17AIpxljlJ1IQgSBAf0bAEMNur1CyTfv/VLXSFAUxzglu5lFBwJKV4 P7dg== X-Gm-Message-State: APuU4Z8p9e+SRLERi0rgpPwJ38QvahqqOaCUDxdz7GZzJPGLZ3tw9kya AivkVUhEmmPJG+G76DCs6PCXBatR9jpVUMcu28o9f52urPCWQEeoAXrZ X-Gm-Gg: AZFdTZeUeyKsQ1tdZ4C6d6A8yHQMVBNiXH8/pmcIJwsg5vJwx8G3T3tvFzxzaujWLba 6OVmsvi0CFxbedd5ONLOLrrjH4j2chYcfoC+fJvH2A6m0SWsRTQwwEkd3Z86LT2I3i04J+vsuDc V/xp8x0hronMOjiKfaL7nGmAJtowR3lGZLXZ08eAnYgHoATcx7oQJp3nMYF0ZIjf1QiS9DEkVyF q2OGvI9YB6o1sO1KWPp+SRgF3DBrV5hkWs5lpvWJgspa4D5xLJ57wkS35Qpm6d5jMGkrFcWzbig R9o7U3OGmGIj7XUyIbVH8TGa5h/K0iYfR6UdXmGDPoUXqtweU7ydHCY/QgOvT24u5ocMBR7KIOK T/U69l2DVTuLqcsSbPC+Oc/CxlioZmdD7kCdcK0hRx5LOa0+9OHF/3UmcmayyoyGLp8BB/uTqXm SesfvVuVO6dJMgxFNXl0d8H2LKbujIBQ7u3L1JbveqDZB9JMVKJgJaa0UXyqMmMz4u63vyoU+VX fFco15JLI3PG7sXLNET4l/OzATcBpPy0BqKW6ZcrUUDLx9GeWMxBDR8K1qOoC0YLo6R1+M4bzEE r352c40fhhtScxkV64UTCsQ= X-Received: by 2002:a05:701b:4659:b0:1ae:b906:7733 with SMTP id a92af1059eb24-1b57cd0bb75mr15200878c88.23.1795919531795; Sat, 28 Nov 2026 18:32:11 -0800 (PST) Received: from localhost ([2a03:2880:9ff:6e::]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b562a82b3fsm81884275c88.5.2026.11.28.18.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2026 18:32:11 -0800 (PST) Date: Sat, 28 Nov 2026 18:32:07 -0800 From: Stanislav Fomichev To: Julius Bairaktaris Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, willemb@google.com, willemdebruijn.kernel@gmail.com, ncardwell@google.com, kuniyu@google.com, alice.kernel@fastmail.im, wang.zhan@smartx.com, marcelo.leitner@gmail.com, lucien.xin@gmail.com, linux-sctp@vger.kernel.org, dsahern@kernel.org, steffen.klassert@secunet.com, nbd@nbd.name Subject: Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets Message-ID: References: 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 In-Reply-To: On 11/28, Julius Bairaktaris wrote: > skb_gso_transport_seglen() returns the length of one segment of a GSO > packet, which the MTU checks of IPv4 and IPv6 forwarding and output > compare with the MTU. For an encapsulated packet it counts from the > inner transport header and adds the inner L4 header: fraglist GRO > leaves the inner transport header unset for the inner flow of a tunnel, > and the inner UDP and SCTP headers are not counted. > > Patch 1 sets the inner transport header in the fraglist completion of > TCP and UDP GRO, IPv4 and IPv6. > Patch 2 counts the inner UDP header of encapsulated UDP GSO packets. > Patch 3 counts the SCTP header of encapsulated SCTP GSO packets. > > Per issue: > - Trigger: patch 1, tunnel traffic from the network (VXLAN, FOU/GUE, > GRE, IPIP, SIT) forwarded by a host whose ingress has rx-gro-list on; > patch 2, UDP GSO packets in a UDP tunnel (UDP GRO behind a tunnel > socket, UDP_SEGMENT over VXLAN) forwarded or sent over a smaller MTU; > patch 3, SCTP over UDP (net.sctp.udp_port and encap_port set) > forwarded over a smaller MTU. > - Impact: patch 1, the forwarded aggregates are dropped or their > segments checked against the MTU with a wrong length; patches 2 and > 3, segments of up to 8 or 12 bytes over the MTU leave whole and are > lost further on. No memory safety issue. CVSS 3.1: 3.7 > (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L). > - Until the fix lands: patch 1, ethtool -K rx-gro-list off; > patches 2 and 3, nothing short of the fix. > - Found: by Sashiko reviews of earlier versions of "ipmr: forward GSO > multicast packets". > > Tested in QEMU (KVM) with network namespaces, on net (28a371228d4e): > - VXLAN with an inner UDP or TCP flow over IPv4 or IPv6, outer UDP > checksum zero or set, rx-gro-list on the router, forwarded unicast > over a 1400-byte route, 1000 packets per case: net delivers 35 to 195 > per case (2 runs of 12 cases); with this series all 1000 arrive with > valid outer and inner checksums, also with checksum offload on the > egress (5 runs, one with KASAN). > - An SCTP association over UDP with a 1500-byte path MTU through a > router whose egress MTU is 1496 bytes: on net the router hands the > egress 20 (IPv4) and 28 (IPv6) GSO packets with segments of up to 1500 > bytes (2 runs); with this series none (5 runs, one with KASAN). > > Changes since "ipmr: forward GSO multicast packets" v6, whose patches 1 > and 3 are patches 1 and 2 here: > - Split out of the ipmr series (Willem de Bruijn). > - Patch 3 (new): count the SCTP header in the encapsulated branch of > skb_gso_transport_seglen() (Sashiko on v6 patch 3). > - Patches 1 and 2: name the IPv6 users of the segment length in the > commit message. > - Rebase onto net. > - ipmr v6: https://lore.kernel.org/netdev/cover.1795295554.git.julius@bairaktaris.de/ > > I used Claude (Anthropic) to help write these patches. > > Julius Bairaktaris (3): > net: gro: set the inner transport header of encapsulated fraglist > packets > net: gso: count the inner UDP header of encapsulated UDP GSO packets > net: gso: count the SCTP header of encapsulated SCTP GSO packets > This seems to be making gre tests unhappy? Can you check? https://netdev.bots.linux.dev/branch_deltas/net-next-2026-11-28--18-00.html Or is it the ipmr series? Dropping from the PW for now.. --- pw-bot: cr