Eric Dumazet
1e306ec49a
tcp: fix possible sk_priority leak in tcp_v4_send_reset()
...
When tcp_v4_send_reset() is called with @sk == NULL,
we do not change ctl_sk->sk_priority, which could have been
set from a prior invocation.
Change tcp_v4_send_reset() to set sk_priority and sk_mark
fields before calling ip_send_unicast_reply().
This means tcp_v4_send_reset() and tcp_v4_send_ack()
no longer have to clear ctl_sk->sk_mark after
their call to ip_send_unicast_reply().
Fixes: f6c0f5d209
("tcp: honor SO_PRIORITY in TIME_WAIT state")
Signed-off-by: Eric Dumazet <edumazet@google.com >
Cc: Antoine Tenart <atenart@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-05-12 10:05:50 +01:00
..
2023-03-22 21:48:59 +01:00
2023-05-10 10:27:31 +01:00
2023-02-13 18:35:15 +08:00
2023-03-15 00:37:32 -07:00
2023-04-04 16:57:10 -07:00
2023-02-01 20:54:27 -08:00
2022-10-20 17:24:59 -07:00
2023-03-23 08:32:52 +00:00
2022-10-19 09:00:53 +02:00
2023-02-13 18:35:15 +08:00
2023-03-16 17:26:31 -07:00
2022-02-17 11:44:20 -08:00
2021-09-28 17:32:56 -07:00
2022-04-30 15:12:58 +01:00
2023-03-21 21:32:18 -07:00
2022-11-22 20:18:20 -08:00
2023-04-12 16:40:39 -07:00
2023-04-12 16:40:39 -07:00
2023-03-16 21:20:32 -07:00
2023-03-16 21:20:32 -07:00
2021-05-17 15:29:35 -07:00
2022-08-25 10:33:21 +02:00
2023-03-31 21:37:06 -07:00
2023-03-17 08:56:37 +00:00
2023-02-20 16:31:49 -08:00
2022-05-12 16:52:18 -07:00
2022-10-31 20:14:27 -07:00
2023-03-29 08:22:52 +01:00
2023-02-15 10:25:21 +00:00
2022-07-08 12:10:33 +01:00
2022-07-15 11:49:55 +01:00
2022-10-31 20:14:27 -07:00
2023-03-21 21:16:26 -07:00
2023-02-01 20:54:27 -08:00
2022-01-29 17:53:07 +00:00
2023-04-26 10:17:46 +02:00
2023-01-25 22:45:00 -08:00
2022-10-03 07:59:06 +01:00
2023-04-13 16:43:38 -07:00
2022-11-16 12:48:44 +00:00
2022-09-29 07:18:00 +02:00
2022-08-04 11:31:20 -07:00
2023-04-12 16:40:39 -07:00
2022-06-24 11:34:38 +01:00
2022-12-25 13:38:09 -08:00
2022-11-16 13:02:04 +00:00
2023-04-12 16:40:39 -07:00
2023-01-23 21:37:25 -08:00
2022-05-16 13:03:29 +02:00
2023-03-21 21:32:18 -07:00
2023-04-04 18:56:58 -07:00
2023-01-26 10:52:18 +01:00
2021-05-17 15:29:35 -07:00
2023-04-06 12:01:20 -07:00
2023-04-06 12:01:20 -07:00
2023-04-21 20:26:56 -07:00
2022-12-12 13:11:24 -08:00
2023-04-07 08:19:11 +01:00
2023-02-02 00:25:14 +01:00
2022-04-06 12:05:41 -07:00
2023-05-10 10:03:32 +01:00
2022-10-16 15:27:07 -07:00
2023-03-22 22:53:00 -07:00
2023-02-02 00:25:14 +01:00
2023-02-02 00:25:14 +01:00
2022-09-20 10:21:49 -07:00
2022-08-17 10:19:22 +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
2023-05-10 10:27:31 +01:00
2023-05-12 10:05:50 +01:00
2022-04-06 12:05:41 -07:00
2022-08-29 12:47:15 +01:00
2023-03-18 12:23:34 +00:00
2022-04-06 12:05:41 -07:00
2022-10-03 12:38:34 +01:00
2023-03-18 12:23:34 +00:00
2022-12-20 03:13:45 +01:00
2022-04-28 13:02:01 -07:00
2023-03-18 12:23:34 +00:00
2022-04-06 12:05:41 -07:00
2023-03-17 08:25:05 +00:00
2023-01-19 09:26:16 -08: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
2023-05-10 10:27:31 +01:00
2021-05-17 15:29:35 -07:00
2023-03-03 17:25:15 +01:00
2022-11-16 09:43:35 +00:00
2022-04-12 15:00:25 +02:00
2022-12-12 09:29:56 +00:00
2022-12-12 09:51:52 +00:00
2022-11-29 08:44:24 -08:00
2023-03-17 08:56:37 +00:00
2022-10-12 17:50:37 -07:00
2023-04-21 20:26:56 -07:00
2022-06-08 10:10:13 -07:00
2022-09-29 07:18:00 +02:00