Eric Dumazet
4057037535
tcp: add accessors to read/set tp->snd_cwnd
...
We had various bugs over the years with code
breaking the assumption that tp->snd_cwnd is greater
than zero.
Lately, syzbot reported the WARN_ON_ONCE(!tp->prior_cwnd) added
in commit 8b8a321ff72c ("tcp: fix zero cwnd in tcp_cwnd_reduction")
can trigger, and without a repro we would have to spend
considerable time finding the bug.
Instead of complaining too late, we want to catch where
and when tp->snd_cwnd is set to an illegal value.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Link: https://lore.kernel.org/r/20220405233538.947344-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-04-06 12:05:41 -07:00
..
2020-08-10 12:06:44 -07:00
2022-03-20 00:29:47 +01:00
2022-02-21 11:41:30 +00:00
2021-06-30 15:51:09 -07:00
2022-02-26 12:53:59 +00:00
2022-01-27 12:03:46 -08:00
2021-09-19 12:43:56 +01:00
2021-09-29 11:39:33 +01:00
2022-02-18 21:20:06 -08:00
2022-03-07 13:14:04 +01:00
2022-03-07 13:14:03 +01:00
2022-03-15 20:20:02 -07:00
2022-02-17 11:44:20 -08:00
2021-09-28 17:32:56 -07:00
2022-02-10 15:33:33 +00:00
2022-03-15 20:20:02 -07:00
2022-03-15 20:20:02 -07:00
2021-11-24 17:21:42 -08:00
2021-05-17 15:29:35 -07:00
2021-11-24 17:21:42 -08:00
2022-01-25 11:25:21 +00:00
2021-11-14 12:20:44 +00:00
2022-02-02 14:45:18 +00:00
2021-12-10 21:14:49 -08:00
2022-03-03 14:38:48 +00:00
2022-02-09 21:28:36 -08:00
2022-01-26 19:00:31 -08:00
2021-03-01 13:32:12 -08:00
2022-03-03 14:38:48 +00:00
2022-03-03 14:38:48 +00:00
2022-01-11 20:36:08 -08:00
2022-03-03 14:38:48 +00:00
2022-01-29 17:53:07 +00:00
2022-03-03 14:38:48 +00:00
2021-11-20 14:11:00 +00:00
2021-01-08 19:25:35 -08:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-06-30 15:51:09 -07:00
2021-10-28 14:36:41 +01:00
2021-10-13 09:41:37 -07:00
2019-10-04 11:10:56 -07:00
2022-02-10 17:29:56 -08:00
2020-08-18 16:02:16 -07:00
2021-02-26 12:28:03 -08:00
2020-11-16 08:08:54 -08:00
2021-04-18 22:04:16 +02:00
2019-05-21 10:50:45 +02:00
2022-02-08 20:41:33 -08:00
2022-04-06 13:45:26 +01:00
2022-01-26 19:00:31 -08:00
2021-05-17 15:29:35 -07:00
2021-07-13 09:28:29 -07:00
2022-04-06 13:45:26 +01:00
2022-03-23 10:53:49 -07:00
2021-11-16 19:07:54 -08:00
2022-03-09 20:05:44 -08:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-03-15 16:43:31 +01:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2018-10-10 22:26:00 -07:00
2020-02-27 18:50:19 -08:00
2021-09-20 13:09:06 +01:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-02-02 14:45:18 +00:00
2022-04-06 12:05:41 -07:00
2021-11-16 13:16:54 +00:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2021-07-27 20:07:21 +01:00
2022-04-06 12:05:41 -07:00
2021-06-29 11:28:21 -07:00
2020-03-09 22:34:58 +01:00
2022-04-06 12:05:41 -07:00
2017-11-02 11:10:55 +01:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2021-05-17 15:29:35 -07:00
2021-10-26 12:29:33 -07:00
2021-07-13 09:28:29 -07:00
2020-07-24 15:41:54 -07:00
2021-11-24 17:21:42 -08:00
2021-09-21 10:17:20 +01:00
2022-02-23 12:35:00 +00:00
2020-07-10 13:54:00 -07:00
2022-02-07 11:18:49 +00:00
2021-05-17 15:29:35 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2022-03-15 20:20:02 -07:00
2021-05-17 15:29:35 -07:00
2020-05-06 09:40:08 +02:00
2021-09-23 10:10:00 +02:00