Neal Cardwell dcf1158b27 tcp: return sizeof tcp_dctcp_info in dctcp_get_info()
Make sure that dctcp_get_info() returns only the size of the
info->dctcp struct that it zeroes out and fills in. Previously it had
been returning the size of the enclosing tcp_cc_info union,
sizeof(*info).  There is no problem yet, but that union that may one
day be larger than struct tcp_dctcp_info, in which case the
TCP_CC_INFO code might accidentally copy uninitialized bytes from the
stack.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-06-14 23:46:30 -07:00
..
2015-08-25 13:38:50 -07:00
2016-04-27 22:48:24 -04:00
2015-05-28 11:23:20 +08:00
2016-06-08 11:36:02 -07:00
2016-05-12 16:53:58 -04:00
2016-04-27 22:48:23 -04:00
2016-03-31 08:59:56 +02:00
2016-04-21 14:22:13 -04:00
2016-06-10 23:07:49 -07:00
2016-06-10 23:07:49 -07:00
2016-06-10 23:07:49 -07:00
2016-06-10 23:07:49 -07:00
2016-06-10 23:07:49 -07:00
2014-05-23 16:28:53 -04:00
2015-09-17 17:18:37 -07:00