Files
twx-linux/net/ipv4
WANG Cong 32a44f1ba7 tcp: reset sk_rx_dst in tcp_disconnect()
commit d747a7a51b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-21 07:44:54 +02:00
..
2017-06-14 13:16:19 +02:00
2015-08-25 13:38:50 -07:00
2017-06-17 06:39:35 +02:00
2016-11-15 07:46:38 +01:00
2016-11-15 07:46:38 +01:00
2017-07-05 14:37:14 +02:00
2015-11-02 22:47:14 -05:00
2017-02-26 11:07:50 +01:00
…
2015-10-21 07:00:48 -07:00
2017-04-30 05:49:29 +02:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2017-03-22 12:04:17 +01:00
2017-05-14 13:32:58 +02:00
2015-10-21 07:00:53 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2017-07-21 07:44:54 +02:00
…
2016-11-15 07:46:38 +01:00
2016-11-15 07:46:39 +01:00
…
2015-09-17 17:18:37 -07:00