WANG Cong
d747a7a51b
tcp: reset sk_rx_dst in tcp_disconnect()
...
We have to reset the sk->sk_rx_dst when we disconnect a TCP
connection, because otherwise when we re-connect it this
dst reference is simply overridden in tcp_finish_connect().
This fixes a dst leak which leads to a loopback dev refcnt
leak. It is a long-standing bug, Kevin reported a very similar
(if not same) bug before. Thanks to Andrei for providing such
a reliable reproducer which greatly narrows down the problem.
Fixes: 41063e9dd1 ("ipv4: Early TCP socket demux.")
Reported-by: Andrei Vagin <avagin@gmail.com >
Reported-by: Kevin Xu <kaiwen.xu@hulu.com >
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-06-25 12:23:07 -04:00
..
2017-04-12 22:02:40 +02:00
2017-05-19 15:06:48 -07:00
2016-12-24 11:46:01 -08:00
2017-06-19 14:10:20 -04:00
2017-02-27 18:43:47 -08:00
2017-03-22 10:48:49 -07:00
2017-03-09 18:23:27 -08:00
2017-06-13 13:46:01 -04:00
2017-06-07 15:53:24 -04:00
2017-05-02 11:46:28 -04:00
2017-06-07 15:53:24 -04:00
2017-06-13 16:16:11 -04:00
2017-06-09 11:39:23 +02:00
2017-05-24 18:10:51 +02:00
2017-06-20 15:36:16 -04:00
2017-04-17 15:35:38 -04:00
2017-05-15 15:50:49 -07:00
2017-06-16 14:59:36 -04:00
2017-03-03 10:16:38 -08:00
2017-06-04 22:55:17 -04:00
2017-02-16 21:25:49 -05:00
2017-06-12 15:21:20 -04:00
2017-06-07 15:53:24 -04:00
2017-02-03 15:16:45 -05:00
2017-06-25 12:23:07 -04:00
2017-06-25 11:46:56 -04:00
2017-05-02 15:34:53 -04:00
2017-06-07 15:53:24 -04:00
2017-03-09 18:23:27 -08:00
2017-04-17 13:28:48 -04:00
2017-06-14 12:40:49 +02:00
2017-06-10 16:14:27 -04:00
2016-09-10 23:12:53 -07:00
2016-12-24 11:46:01 -08:00
2017-05-26 14:20:29 -04:00
2017-06-13 13:34:13 -04:00
2017-06-07 15:53:24 -04:00
2017-05-31 14:48:24 -04:00
2016-10-20 11:23:08 -04:00
2017-05-24 11:26:01 +02:00
2017-04-13 13:58:22 -04:00
2017-06-01 11:49:39 -04:00
2017-03-09 18:23:27 -08:00
2017-04-21 15:29:40 -04:00
2017-06-07 15:53:24 -04:00
2017-05-15 14:22:12 -04:00
2017-06-07 15:53:24 -04:00
2017-01-24 13:44:28 -05:00
2017-04-21 20:23:53 -07:00
2017-05-02 16:40:27 -07:00
2017-01-24 11:07:35 +01:00
2017-03-09 18:23:27 -08:00
2017-06-15 14:23:44 -04:00
2017-06-14 15:24:18 -04:00
2017-06-19 15:13:43 -04:00
2017-05-16 14:49:43 -04:00
2017-03-03 20:43:26 -08:00
2017-05-31 12:26:44 -04:00
2017-04-13 13:58:22 -04:00
2017-06-10 18:20:38 -04:00
2017-06-09 10:10:24 -04:00
2017-05-22 14:39:36 -04:00
2016-10-27 16:16:09 -04:00
2017-06-14 13:52:44 +02:00
2017-05-18 10:05:40 -04:00
2017-06-12 11:51:21 +02:00
2017-02-22 10:15:09 -08:00
2017-02-17 13:40:05 -05:00
2017-04-01 12:45:57 -07:00
2017-04-17 13:01:48 -04:00
2017-04-16 23:42:49 -05:00