Eric Dumazet
c21b48cc1b
net: adjust skb->truesize in ___pskb_trim()
...
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.
As we did recently in commit 158f323b98 ("net: adjust skb->truesize in
pskb_expand_head()") we can adjust skb->truesize from ___pskb_trim(),
via a call to skb_condense().
If all frags were freed, then skb->truesize can be recomputed.
This call can be done if skb is not yet owned, or destructor is
sock_edemux().
Signed-off-by: Eric Dumazet <edumazet@google.com >
Reported-by: Andrey Konovalov <andreyknvl@google.com >
Cc: Willem de Bruijn <willemb@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-04-28 16:06:47 -04:00
..
2017-01-22 16:46:13 -05:00
2017-03-03 21:44:35 -08:00
2016-12-24 11:46:01 -08:00
2017-02-06 11:25:57 -05:00
2017-02-27 18:43:47 -08:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-16 12:05:38 -07:00
2017-03-09 18:23:27 -08:00
2017-04-25 14:02:39 -04:00
2017-03-02 08:42:29 +01:00
2017-01-30 11:05:04 +01:00
2017-03-23 12:03:36 +01:00
2017-04-28 16:06:47 -04:00
2016-12-03 23:54:25 -05:00
2017-03-13 22:00:42 -07:00
2017-03-09 18:23:27 -08:00
2017-03-03 10:16:38 -08:00
2017-02-11 02:31:11 -05:00
2017-02-16 21:25:49 -05:00
2017-02-21 13:25:22 -05:00
2017-02-27 18:43:47 -08:00
2017-02-03 15:16:45 -05:00
2017-04-28 16:05:22 -04:00
2017-04-26 14:59:35 -04:00
2016-12-25 17:21:22 +01:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-24 13:13:53 -07:00
2017-04-18 08:26:03 +02:00
2017-04-08 08:29:04 -07:00
2016-09-10 23:12:53 -07:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:23:27 -08:00
2017-04-20 15:37:46 -04:00
2017-03-02 08:42:38 +01:00
2017-03-16 20:22:18 -07:00
2016-10-20 11:23:08 -04:00
2017-04-13 23:20:13 +02:00
2017-01-06 22:20:45 -05:00
2017-03-22 15:38:43 -07:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-04-01 12:16:46 -07:00
2017-04-25 14:05:52 -04:00
2017-03-09 18:23:27 -08:00
2017-01-24 13:44:28 -05:00
2017-04-21 15:19:27 -04:00
2017-03-09 18:23:27 -08:00
2017-01-24 11:07:35 +01:00
2017-03-09 18:23:27 -08:00
2017-03-16 21:27:57 -07:00
2017-04-20 16:32:07 -04:00
2017-04-06 13:55:51 -07:00
2017-03-09 18:23:27 -08:00
2017-03-03 20:43:26 -08:00
2017-04-01 10:43:37 -07:00
2016-10-30 12:42:58 -04:00
2017-04-28 12:20:42 -04:00
2017-03-21 15:25:10 -07:00
2017-03-21 14:41:47 -07:00
2016-10-27 16:16:09 -04:00
2017-03-29 09:11:29 +02:00
2017-03-09 18:23:27 -08:00
2017-04-27 12:20:19 +02:00
2017-02-22 10:15:09 -08:00
2017-02-17 13:40:05 -05:00
2017-02-03 15:16:45 -05:00
2017-03-21 18:44:17 -07:00
2016-10-06 09:52:23 -07:00