diff options
author | Neal Cardwell <ncardwell@google.com> | 2016-06-13 18:20:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-15 09:46:30 +0300 |
commit | dcf1158b275f9d51d6a742cf7166edc764ee4718 (patch) | |
tree | 80f977432d9fc7d290e5a72416dbca84ec9464e6 /net/rds/loop.c | |
parent | a5e27d18fe64561a467b706f70cfc89ba6323f87 (diff) | |
download | linux-dcf1158b275f9d51d6a742cf7166edc764ee4718.tar.xz |
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>
Diffstat (limited to 'net/rds/loop.c')
0 files changed, 0 insertions, 0 deletions