rpl_do_srh_inline() leaves transport_header at the inserted RPL SRH, although the L4 header has not moved. GSO length checks then read the SRH as TCP, and since commit 7fb4c1967011 ("net: pull headers in qdisc_pkt_len_segs_init()"), a bogus doff below 5 there makes __dev_queue_xmit() drop each GSO packet of the flow as SKB_BAD_GSO. In rpl_output(), restore transport_header from its distance to the end of the packet, which the insertion does not change. rpl_input() keeps it at the SRH, where local input parses extension headers from. Signed-off-by: Matt Vollrath --- transport_header has pointed at the inserted SRH since commit a7a29f9c361f ("net: ipv6: add rpl sr tunnel"), where qdisc length accounting and ndo_features_check() read it. --- net/ipv6/rpl_iptunnel.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/ipv6/rpl_iptunnel.c b/net/ipv6/rpl_iptunnel.c index 4e10adcd70e8..0556bb989041 100644 --- a/net/ipv6/rpl_iptunnel.c +++ b/net/ipv6/rpl_iptunnel.c @@ -206,6 +206,7 @@ static int rpl_output(struct net *net, struct sock *sk, struct sk_buff *skb) struct dst_entry *orig_dst = skb_dst(skb); struct dst_entry *dst = NULL; struct rpl_lwt *rlwt; + int tail_len = -1; int err; rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate); @@ -214,10 +215,16 @@ static int rpl_output(struct net *net, struct sock *sk, struct sk_buff *skb) dst = dst_cache_get(&rlwt->cache); local_bh_enable(); + if (skb_transport_header_was_set(skb)) + tail_len = skb->len - skb_transport_offset(skb); + err = rpl_do_srh(skb, rlwt, dst); if (unlikely(err)) goto drop; + if (tail_len >= 0) + skb_set_transport_header(skb, skb->len - tail_len); + if (unlikely(!dst)) { struct ipv6hdr *hdr = ipv6_hdr(skb); struct flowi6 fl6; -- 2.43.0