Willem de Bruijn
c02756173e
net: test tailroom before appending to linear skb
...
[ Upstream commit 113f99c3358564a0647d444c2ae34e8b1abfd5b9 ]
Device features may change during transmission. In particular with
corking, a device may toggle scatter-gather in between allocating
and writing to an skb.
Do not unconditionally assume that !NETIF_F_SG at write time implies
that the same held at alloc time and thus the skb has sufficient
tailroom.
This issue predates git history.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 16:17:24 +02:00
..
2018-05-22 18:53:58 +02:00
2017-12-17 15:07:58 +01:00
2017-06-23 14:17:31 -04:00
2018-04-12 12:32:22 +02:00
2017-10-21 01:33:19 +01:00
2018-01-02 20:31:06 +01:00
2018-02-25 11:07:46 +01:00
2017-09-01 17:42:05 -07:00
2018-01-02 20:31:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-03 15:35:59 -07:00
2018-04-12 12:32:27 +02:00
2017-08-23 20:37:10 -07:00
2017-08-01 16:09:14 -07:00
2017-10-08 10:12:15 -07:00
2017-12-20 10:10:37 +01:00
2018-02-13 10:19:47 +01:00
2018-02-13 10:19:48 +01:00
2017-09-01 18:38:09 -07:00
2018-03-31 18:10:40 +02:00
2017-10-22 02:03:51 +01:00
2018-05-16 10:10:24 +02:00
2018-05-16 10:10:24 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-24 11:01:27 +01:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2018-05-25 16:17:24 +02:00
2018-03-31 18:10:41 +02:00
2017-06-25 11:42:01 -04:00
2018-05-09 09:51:48 +02:00
2018-05-09 09:51:48 +02:00
2017-11-02 11:10:55 +01:00
2017-10-27 23:43:31 +09:00
2017-08-09 16:57:38 -07:00
2017-10-12 22:57:11 -07:00
2017-11-02 11:10:55 +01:00
2017-02-28 12:49:36 +01:00
2018-05-19 10:20:23 +02:00
2017-08-30 11:20:09 -07:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-01-02 20:31:08 +01:00
2018-05-19 10:20:23 +02:00
2017-10-21 01:33:19 +01:00
2017-11-02 11:10:55 +01:00
2018-05-19 10:20:25 +02:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-09-01 17:42:05 -07:00
2017-08-06 21:25:10 -07:00
2016-12-06 11:34:24 -05:00
2017-09-01 18:38:09 -07:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2018-04-29 11:33:11 +02:00
2018-01-02 20:31:07 +01:00
2017-05-17 16:06:01 -04:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:07:57 +01:00
2018-04-26 11:02:13 +02:00
2018-01-31 14:03:47 +01:00
2018-03-08 22:41:13 -08:00
2017-07-24 17:28:12 -07:00
2018-01-02 20:31:09 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2018-03-31 18:10:38 +02:00
2017-08-14 22:17:05 -07:00
2017-12-25 14:26:30 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-05-19 10:20:25 +02:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2018-01-31 14:03:47 +01:00
2017-07-24 13:52:59 -07:00
2018-05-19 10:20:27 +02:00
2018-03-03 10:24:25 +01:00
2017-06-16 11:48:39 -04:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-11-02 11:10:55 +01:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00