Wei Wang
c120144407
tcp: memset ca_priv data to 0 properly
...
Always zero out ca_priv data in tcp_assign_congestion_control() so that
ca_priv data is cleared out during socket creation.
Also always zero out ca_priv data in tcp_reinit_congestion_control() so
that when cc algorithm is changed, ca_priv data is cleared out as well.
We should still zero out ca_priv data even in TCP_CLOSE state because
user could call connect() on AF_UNSPEC to disconnect the socket and
leave it in TCP_CLOSE state and later call setsockopt() to switch cc
algorithm on this socket.
Fixes: 2b0a8c9ee ("tcp: add CDG congestion control")
Reported-by: Andrey Konovalov <andreyknvl@google.com >
Signed-off-by: Wei Wang <weiwan@google.com >
Acked-by: Eric Dumazet <edumazet@google.com >
Acked-by: Yuchung Cheng <ycheng@google.com >
Acked-by: Neal Cardwell <ncardwell@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-04-26 14:58:32 -04:00
..
2017-04-13 23:21:40 +02:00
2017-03-09 18:23:27 -08:00
2017-01-16 12:57:48 +01:00
2017-02-13 22:15:03 -05:00
2017-02-04 19:44:22 -05:00
2015-07-29 22:44:04 -07:00
2017-03-02 08:42:32 +01:00
2017-02-15 11:04:11 +01:00
2017-01-17 10:23:08 +01:00
2017-03-22 14:15:49 -07:00
2015-07-24 22:46:11 -07:00
2016-09-28 04:48:00 -04:00
2017-02-08 15:25:18 -05:00
2017-02-27 18:43:47 -08:00
2016-10-30 12:42:58 -04:00
2016-06-30 05:03:36 -04:00
2016-10-20 14:32:22 -04:00
2017-01-09 15:49:12 -05:00
2017-02-09 16:43:45 -05:00
2017-03-09 18:23:27 -08:00
2017-01-13 22:37:16 -05:00
2016-06-05 22:56:42 -04:00
2017-01-18 13:04:29 -05:00
2016-12-29 11:38:31 -05:00
2015-08-28 13:32:36 -07:00
2016-11-03 16:10:26 -04:00
2017-03-22 15:40:45 -07:00
2016-12-24 11:46:01 -08:00
2016-09-16 04:24:07 -04:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:28:42 -08:00
2017-04-17 12:59:22 -04:00
2017-01-30 15:14:22 -05:00
2016-11-18 10:59:15 -05:00
2016-11-18 10:59:15 -05:00
2015-04-03 12:11:15 -04:00
2017-03-27 21:06:53 -07:00
2016-12-24 11:46:01 -08:00
2017-04-17 12:46:50 -04:00
2017-02-16 21:25:49 -05:00
2017-02-15 11:04:11 +01:00
2017-02-28 12:49:36 +01:00
2017-03-24 20:50:28 -07:00
2017-02-02 23:34:19 -05:00
2016-11-03 15:25:26 -04:00
2017-04-17 12:46:50 -04:00
2017-04-24 12:50:29 -04:00
2017-01-09 13:58:57 -05:00
2017-01-30 15:00:58 -05:00
2016-10-29 17:12:43 -04:00
2016-05-11 14:43:19 -04:00
2017-03-02 08:42:27 +01:00
2017-04-26 14:58:32 -04:00
2016-05-11 14:43:19 -04:00
2016-12-06 11:34:24 -05:00
2016-08-23 23:11:36 -07:00
2017-01-28 10:33:06 -05:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-04-07 11:44:00 -07:00
2017-03-13 21:55:47 -07:00
2016-11-21 13:20:17 -05:00
2017-02-07 13:07:46 -05:00
2017-03-22 15:39:42 -07:00
2016-06-10 23:07:49 -07:00
2016-09-19 20:59:34 -04:00
2017-04-08 08:30:09 -07:00
2017-02-21 13:26:03 -05:00
2016-09-21 00:23:00 -04:00
2017-04-05 18:41:27 -07:00
2016-11-21 13:20:17 -05:00
2017-03-07 13:58:33 -08:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-04-09 18:27:28 -07:00
2016-07-11 13:27:06 -07:00
2016-09-08 16:13:09 -07:00
2016-11-24 15:32:14 -05:00
2017-04-24 13:48:54 -04:00
2016-06-17 20:23:32 -07:00
2017-02-07 16:29:30 -05:00
2016-11-24 15:32:14 -05:00
2017-02-15 11:04:11 +01:00
2017-02-15 11:04:11 +01:00
2015-03-25 14:07:04 -04:00
2015-10-24 06:54:12 -07:00
2017-02-09 10:22:19 +01:00
2017-02-09 10:22:17 +01:00
2017-01-10 10:57:12 +01:00