Eric Dumazet 7162fb242c tcp: do not underestimate skb->truesize in tcp_trim_head()
Andrey found a way to trigger the WARN_ON_ONCE(delta < len) in
skb_try_coalesce() using syzkaller and a filter attached to a TCP
socket over loopback interface.

I believe one issue with looped skbs is that tcp_trim_head() can end up
producing skb with under estimated truesize.

It hardly matters for normal conditions, since packets sent over
loopback are never truncated.

Bytes trimmed from skb->head should not change skb truesize, since
skb->head is not reallocated.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-28 16:05:22 -04:00
..
2017-02-13 22:15:03 -05:00
2017-02-27 18:43:47 -08:00
2016-10-20 14:32:22 -04:00
2017-01-13 22:37:16 -05:00
2017-04-17 12:46:50 -04:00
2017-02-15 11:04:11 +01:00
2017-03-24 20:50:28 -07:00
2017-04-17 12:46:50 -04:00
2017-03-13 21:55:47 -07:00
2016-06-10 23:07:49 -07:00
2016-09-21 00:23:00 -04:00
2017-04-09 18:27:28 -07:00
2017-02-15 11:04:11 +01:00
2017-01-10 10:57:12 +01:00