Re: [PATCH net] tcp: fix tcp_mark_head_lost to check skb len before fragmenting

2016-01-28 Thread David Miller
From: Yuchung Cheng Date: Mon, 25 Jan 2016 14:01:53 -0800 > From: Neal Cardwell > > This commit fixes a corner case in tcp_mark_head_lost() which was > causing the WARN_ON(len > skb->len) in tcp_fragment() to fire. > > tcp_mark_head_lost() was assuming that if a packet has > tcp_skb_pcount(skb

[PATCH net] tcp: fix tcp_mark_head_lost to check skb len before fragmenting

2016-01-25 Thread Yuchung Cheng
From: Neal Cardwell This commit fixes a corner case in tcp_mark_head_lost() which was causing the WARN_ON(len > skb->len) in tcp_fragment() to fire. tcp_mark_head_lost() was assuming that if a packet has tcp_skb_pcount(skb) of N, then it's safe to fragment off a prefix of M*mss bytes, for any M