Eric Dumazet 36534d3c54 tcp: use signed arithmetic in tcp_rtx_probe0_timed_out()
Due to timer wheel implementation, a timer will usually fire
after its schedule.

For instance, for HZ=1000, a timeout between 512ms and 4s
has a granularity of 64ms.
For this range of values, the extra delay could be up to 63ms.

For TCP, this means that tp->rcv_tstamp may be after
inet_csk(sk)->icsk_timeout whenever the timer interrupt
finally triggers, if one packet came during the extra delay.

We need to make sure tcp_rtx_probe0_timed_out() handles this case.

Fixes: e89688e3e978 ("net: tcp: fix unexcepted socket die when snd_wnd is 0")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Menglong Dong <imagedong@tencent.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://lore.kernel.org/r/20240607125652.1472540-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-10 19:50:10 -07:00
..
2024-05-01 18:37:07 -07:00
2024-05-06 19:14:56 -07:00
2024-05-08 10:39:26 +01:00
2024-01-23 15:13:55 +01:00
2024-04-30 18:32:38 -07:00
2024-01-04 10:23:10 -08:00
2023-10-16 21:05:33 -07:00
2024-04-30 18:46:52 -07:00
2024-05-29 17:34:49 -07:00
2024-05-13 16:41:10 -07:00
2022-12-20 03:13:45 +01:00
2024-05-06 19:14:56 -07:00
2023-09-14 16:16:36 +02:00