aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNeal Cardwell <[email protected]>2016-06-13 11:20:35 -0400
committerDavid S. Miller <[email protected]>2016-06-14 23:46:30 -0700
commitdcf1158b275f9d51d6a742cf7166edc764ee4718 (patch)
tree80f977432d9fc7d290e5a72416dbca84ec9464e6 /tools/perf/scripts/python/bin
parenta5e27d18fe64561a467b706f70cfc89ba6323f87 (diff)
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 <[email protected]> Signed-off-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions