Cong Wang
2e23acd99e
tcp: handle pure FIN case correctly
...
When skb->len==0, the recv_actor() returns 0 too, but we also use 0
for error conditions. This patch amends this by propagating the errors
to tcp_read_skb() so that we can distinguish skb->len==0 case from
error cases.
Fixes: 04919bed948d ("tcp: Introduce tcp_read_skb()")
Reported-by: Eric Dumazet <edumazet@google.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-18 11:04:56 -07:00
..
2022-06-09 21:53:28 +02:00
2022-08-08 20:04:35 -07:00
2021-11-19 11:23:23 +00:00
2022-07-14 15:27:35 -07:00
2022-04-06 13:45:26 +01:00
2022-04-28 13:08:15 -07:00
2022-08-05 19:00:02 -07:00
2022-07-30 13:52:47 -04:00
2022-08-08 17:06:36 -07:00
2022-08-09 18:46:11 -07:00
2022-02-25 09:36:06 +01:00
2022-07-28 18:21:16 -07:00
2022-07-22 12:51:45 +01:00
2022-08-09 09:05:06 +02:00
2022-08-03 14:05:39 +02:00
2022-08-18 11:04:56 -07:00
2022-03-03 08:01:55 -08:00
2022-08-01 12:11:56 -07:00
2022-07-29 20:12:49 -07:00
2022-08-17 21:58:22 -07:00
2022-04-07 21:04:03 -07:00
2022-07-25 19:38:31 -07:00
2022-06-10 14:51:35 +02:00
2022-04-28 13:08:15 -07:00
2022-08-18 11:04:56 -07:00
2022-08-15 11:40:28 +01:00
2022-06-10 16:21:27 -07:00
2021-12-29 08:48:14 -08:00
2022-06-24 10:19:11 +02:00
2022-07-08 12:14:36 +01:00
2022-04-15 14:27:24 -07:00
2022-06-09 21:52:55 -07:00
2022-08-05 09:41:12 -07:00
2022-04-30 20:29:47 +02:00
2022-05-25 12:22:58 -07:00
2022-04-07 21:06:41 -07:00
2022-08-05 08:51:28 +01:00
2022-06-23 20:51:06 -07:00
2022-08-17 08:46:30 +02:00
2022-08-10 09:24:41 +01:00
2022-08-18 10:20:48 -07:00
2022-04-06 13:45:26 +01:00
2022-05-28 15:28:47 +01:00
2022-06-23 12:33:24 -07:00
2022-07-29 12:09:27 +01:00
2022-04-12 15:00:25 +02:00
2022-08-15 11:21:42 +01:00
2022-08-12 10:46:01 +01:00
2022-03-18 13:09:17 +02:00
2022-08-01 11:59:23 -07:00
2022-07-25 19:38:31 -07:00
2022-08-15 11:46:30 +01:00
2022-07-28 18:21:16 -07:00
2022-07-27 13:24:42 +01:00
2022-07-08 18:38:44 -07:00
2022-08-12 11:21:28 +01:00
2022-06-09 21:52:55 -07:00
2022-07-28 18:21:16 -07:00
2022-08-17 10:24:00 +01:00
2022-07-09 12:24:16 -07:00
2022-08-10 09:50:18 +01:00
2022-08-08 11:09:52 +03:00
2022-08-08 20:48:51 -07:00
2022-07-14 22:45:34 +02:00
2022-07-25 13:25:39 +01:00
2022-07-24 18:41:03 -06:00
2022-03-03 09:55:28 +00:00
2022-06-02 10:15:05 -07:00
2021-07-29 15:06:49 +01:00
2022-08-03 16:29:08 -07:00
2021-11-09 10:02:50 -08:00