This patch prevents packets from being fragmented into jumbograms by capping the effective MTU to IP6_MAX_MTU in ip6_fragment, as RFC2675 prohibits a Jumbo Payload option from being carried in a packet that carries a fragment header. Signed-off-by: Mariusz Klimek --- net/ipv6/ip6_output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index c14adcdd4396..67c34fb281c6 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -935,6 +935,8 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, } if (mtu < hlen + sizeof(struct frag_hdr) + 8) goto fail_toobig; + else if (unlikely(mtu > IP6_MAX_MTU)) + mtu = IP6_MAX_MTU; mtu -= hlen + sizeof(struct frag_hdr); frag_id = ipv6_select_ident(net, &ipv6_hdr(skb)->daddr, -- 2.47.3