aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorWei Wang <weiwan@google.com>2017-05-18 11:22:33 -0700
committerMoyster <oysterized@gmail.com>2017-11-06 15:29:43 +0100
commit03691822a5914225161bfffcea41349c281571c1 (patch)
treea29a53c072329a87f307a581f256f2f52a9f304e /scripts/patch-kernel
parent8b3e46bb077b62a006a23d2ea1ba228b5829ddd2 (diff)
tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0
commit 499350a5a6e7512d9ed369ed63a4244b6536f4f8 upstream. 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> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions