diff options
author | 2017-05-18 11:22:33 -0700 | |
---|---|---|
committer | 2017-05-21 13:24:47 -0400 | |
commit | 499350a5a6e7512d9ed369ed63a4244b6536f4f8 (patch) | |
tree | 4b81c6f4df9119704c570e73a6cdde12094e1c89 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff) | |
download | wireguard-linux-499350a5a6e7512d9ed369ed63a4244b6536f4f8.tar.xz wireguard-linux-499350a5a6e7512d9ed369ed63a4244b6536f4f8.zip |
tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0
When tcp_disconnect() is called, inet_csk_delack_init() sets
icsk->icsk_ack.rcv_mss to 0.
This could potentially cause tcp_recvmsg() => tcp_cleanup_rbuf() =>
__tcp_select_window() call path to have division by 0 issue.
So this patch initializes rcv_mss to TCP_MIN_MSS instead of 0.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions