From e5f970aa0e14471f0a8e6225705033219b63e4da Mon Sep 17 00:00:00 2001 From: Brett A C Sheffield Date: Tue, 17 Jun 2025 16:53:08 +0000 Subject: [PATCH] ipv6: fix udp fragmentation A regression was introduced when backporting commit a18dfa9925b9ef6107ea3aa5814ca3c704d34a8a to the stable kernels without applying previous commits in this series. When sending IPv6 UDP packets larger than MTU, EMSGSIZE was returned instead of fragmenting the packets as expected. Fixes: c1502fc84d1c65e17ba25fcde1c52cbe52f79157 --- net/ipv6/ip6_output.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 89a61e040e6a..82786e957f72 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1386,7 +1386,6 @@ static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, } v6_cork->hop_limit = ipc6->hlimit; v6_cork->tclass = ipc6->tclass; - v6_cork->dontfrag = ipc6->dontfrag; if (rt->dst.flags & DST_XFRM_TUNNEL) mtu = READ_ONCE(np->pmtudisc) >= IPV6_PMTUDISC_PROBE ? READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); base-commit: e03ced99c437f4a7992b8fa3d97d598f55453fd0 -- 2.49.0