diff options
author | Eric Dumazet <edumazet@google.com> | 2019-09-05 13:20:41 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-07 17:32:28 +0200 |
commit | b58662a5f7f4677debd5e28d10145cf5decd516b (patch) | |
tree | 32d0dcfaa1ed927c724a286773a3e47317f9f780 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3dd97a08271f031bd54c61e65b6b0ebfb0c404b7 (diff) |
tcp: ulp: fix possible crash in tcp_diag_get_aux_size()
tcp_diag_get_aux_size() can be called with sockets in any state.
icsk_ulp_ops is only present for full sockets.
For SYN_RECV or TIME_WAIT ones we would access garbage.
Fixes: 61723b393292 ("tcp: ulp: add functions to dump ulp-specific information")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Luke Hsiao <lukehsiao@google.com>
Reported-by: Neal Cardwell <ncardwell@google.com>
Cc: Davide Caratti <dcaratti@redhat.com>
Acked-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions