Files
linux-st/include/net
Eric Dumazet 4a269818a7 tcp: fix tcp_unlink_write_queue()
Yury reported crash with this signature :

[  554.034021] [<ffff80003ccd5a58>] 0xffff80003ccd5a58
[  554.034156] [<ffff00000888fd34>] skb_release_all+0x14/0x30
[  554.034288] [<ffff00000888fd64>] __kfree_skb+0x14/0x28
[  554.034409] [<ffff0000088ece6c>] tcp_sendmsg_locked+0x4dc/0xcc8
[  554.034541] [<ffff0000088ed68c>] tcp_sendmsg+0x34/0x58
[  554.034659] [<ffff000008919fd4>] inet_sendmsg+0x2c/0xf8
[  554.034783] [<ffff0000088842e8>] sock_sendmsg+0x18/0x30
[  554.034928] [<ffff0000088861fc>] SyS_sendto+0x84/0xf8

Problem is that skb->destructor contains garbage, and this is
because I accidentally removed tcp_skb_tsorted_anchor_cleanup()
from tcp_unlink_write_queue()

This would trigger with a write(fd, <invalid_memory>, len) attempt,
and we will add to packetdrill this capability to avoid future
regressions.

Fixes: 75c119afe1 ("tcp: implement rb-tree based retransmit queue")
Reported-by: Yury Norov <ynorov@caviumnetworks.com>
Tested-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-11 13:41:24 -07:00
..
2017-07-11 06:08:58 -04:00
2017-04-05 10:15:20 +02:00
2017-09-12 20:41:02 -07:00
2017-09-18 11:40:03 -07:00
2017-10-04 21:39:33 -07:00
2016-07-08 12:20:57 +02:00
2016-06-09 23:41:03 -07:00
2017-08-31 14:42:19 -07:00
2017-04-14 10:06:42 +02:00
2016-05-20 18:03:16 -04:00
2017-10-11 09:49:34 +02:00
2017-10-11 09:49:34 +02:00
2017-02-03 15:16:45 -05:00
2017-06-15 12:12:40 -04:00
2017-10-07 21:22:58 +01:00
2017-09-29 06:19:32 +01:00
2016-08-17 19:36:23 -04:00
2016-10-03 02:00:22 -04:00
2016-07-08 12:20:57 +02:00
2016-12-25 17:21:22 +01:00
2017-01-09 16:07:41 -05:00
2017-10-11 13:41:24 -07:00
2017-06-15 12:12:40 -04:00