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-04-13 23:21:40 +02:00
2017-04-28 16:00:38 -04:00
2017-01-16 12:57:48 +01:00
2017-02-13 22:15:03 -05:00
2017-02-04 19:44:22 -05:00
2015-07-29 22:44:04 -07:00
2017-03-02 08:42:32 +01:00
2017-02-15 11:04:11 +01:00
2017-01-17 10:23:08 +01:00
2017-03-22 14:15:49 -07:00
2015-07-24 22:46:11 -07:00
2016-09-28 04:48:00 -04:00
2017-02-08 15:25:18 -05:00
2017-02-27 18:43:47 -08:00
2016-10-30 12:42:58 -04:00
2016-06-30 05:03:36 -04:00
2016-10-20 14:32:22 -04:00
2017-01-09 15:49:12 -05:00
2017-02-09 16:43:45 -05:00
2017-03-09 18:23:27 -08:00
2017-01-13 22:37:16 -05:00
2016-06-05 22:56:42 -04:00
2017-01-18 13:04:29 -05:00
2016-12-29 11:38:31 -05:00
2015-08-28 13:32:36 -07:00
2016-11-03 16:10:26 -04:00
2017-03-22 15:40:45 -07:00
2016-12-24 11:46:01 -08:00
2016-09-16 04:24:07 -04:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:28:42 -08:00
2017-04-17 12:59:22 -04:00
2017-01-30 15:14:22 -05:00
2016-11-18 10:59:15 -05:00
2016-11-18 10:59:15 -05:00
2015-04-03 12:11:15 -04:00
2017-03-27 21:06:53 -07:00
2016-12-24 11:46:01 -08:00
2017-04-17 12:46:50 -04:00
2017-02-16 21:25:49 -05:00
2017-02-15 11:04:11 +01:00
2017-02-28 12:49:36 +01:00
2017-03-24 20:50:28 -07:00
2017-02-02 23:34:19 -05:00
2016-11-03 15:25:26 -04:00
2017-04-17 12:46:50 -04:00
2017-04-24 12:50:29 -04:00
2017-01-09 13:58:57 -05:00
2017-01-30 15:00:58 -05:00
2016-10-29 17:12:43 -04:00
2016-05-11 14:43:19 -04:00
2017-03-02 08:42:27 +01:00
2017-04-26 14:58:32 -04:00
2016-05-11 14:43:19 -04:00
2016-12-06 11:34:24 -05:00
2016-08-23 23:11:36 -07:00
2017-01-28 10:33:06 -05:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-04-07 11:44:00 -07:00
2017-03-13 21:55:47 -07:00
2016-11-21 13:20:17 -05:00
2017-02-07 13:07:46 -05:00
2017-03-22 15:39:42 -07:00
2016-06-10 23:07:49 -07:00
2016-09-19 20:59:34 -04:00
2017-04-28 16:05:22 -04:00
2017-02-21 13:26:03 -05:00
2016-09-21 00:23:00 -04:00
2017-04-05 18:41:27 -07:00
2016-11-21 13:20:17 -05:00
2017-03-07 13:58:33 -08:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-04-09 18:27:28 -07:00
2016-07-11 13:27:06 -07:00
2016-09-08 16:13:09 -07:00
2016-11-24 15:32:14 -05:00
2017-04-24 13:48:54 -04:00
2016-06-17 20:23:32 -07:00
2017-02-07 16:29:30 -05:00
2016-11-24 15:32:14 -05:00
2017-02-15 11:04:11 +01:00
2017-02-15 11:04:11 +01:00
2015-03-25 14:07:04 -04:00
2015-10-24 06:54:12 -07:00
2017-02-09 10:22:19 +01:00
2017-02-09 10:22:17 +01:00
2017-01-10 10:57:12 +01:00