Kuniyuki Iwashima
ca43ccf412
dccp/tcp: Avoid negative sk_forward_alloc by ipv6_pinfo.pktoptions.
...
Eric Dumazet pointed out [0] that when we call skb_set_owner_r()
for ipv6_pinfo.pktoptions, sk_rmem_schedule() has not been called,
resulting in a negative sk_forward_alloc.
We add a new helper which clones a skb and sets its owner only
when sk_rmem_schedule() succeeds.
Note that we move skb_set_owner_r() forward in (dccp|tcp)_v6_do_rcv()
because tcp_send_synack() can make sk_forward_alloc negative before
ipv6_opt_accepted() in the crossed SYN-ACK or self-connect() cases.
[0]: https://lore.kernel.org/netdev/CANn89iK9oc20Jdi_41jb9URdF210r7d1Y-+uypbMSbOfY6jqrg@mail.gmail.com/
Fixes: 323fbd0edf3f ("net: dccp: Add handling of IPV6_PKTOPTIONS to dccp_v6_do_rcv()")
Fixes: 3df80d9320bc ("[DCCP]: Introduce DCCPv6")
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-02-10 19:53:42 -08:00
..
2022-12-06 07:30:55 +09:00
2022-12-12 14:19:24 -08:00
2021-07-01 13:19:48 -07:00
2021-11-19 11:52:25 +00:00
2023-01-20 18:17:17 -08:00
2022-12-22 10:36:37 +01:00
2022-12-06 20:04:34 -08:00
2021-11-17 20:17:05 -08:00
2022-07-22 12:53:22 +01:00
2022-12-01 20:14:23 -08:00
2022-11-08 12:15:19 +01:00
2020-02-28 14:51:30 +01:00
2022-12-09 09:18:07 +00:00
2022-07-28 10:42:44 -07:00
2023-01-06 09:43:32 +00:00
2022-06-22 12:59:43 +01:00
2022-08-23 10:43:11 +02:00
2022-07-22 12:53:22 +01:00
2022-02-21 11:44:30 +00:00
2022-07-28 22:06:15 -07:00
2022-08-09 22:14:02 -07:00
2021-12-13 12:34:09 +00:00
2022-09-16 14:34:01 +01:00
2022-11-02 20:38:13 -07:00
2022-07-22 12:53:22 +01:00
2022-10-27 12:45:38 +02:00
2021-03-26 17:43:55 +01:00
2022-08-24 13:46:58 +01:00
2022-11-16 11:31:47 +02:00
2022-12-01 13:53:19 +01:00
2022-11-29 15:34:22 +01:00
2022-03-11 10:57:22 +00:00
2020-07-15 07:45:24 -07:00
2020-03-27 19:40:38 -07:00
2021-12-22 15:03:47 -08:00
2022-07-22 12:53:22 +01:00
2021-12-22 15:03:51 -08:00
2022-07-24 18:39:17 -06:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-11-03 15:16:50 +01:00
2022-12-12 11:39:13 +01:00
2022-10-31 20:14:27 -07:00
2022-11-22 20:41:53 -08:00
2021-11-29 19:50:45 -08:00
2022-12-05 21:58:27 -08:00
2020-05-08 21:33:33 -07:00
2022-11-16 12:48:44 +00:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2020-04-20 07:34:16 +02:00
2022-07-22 12:53:22 +01:00
2021-12-06 16:06:02 -08:00
2021-12-16 07:18:35 -08:00
2022-07-28 22:21:54 -07:00
2022-09-20 09:13:38 +02:00
2022-11-14 11:24:16 +00:00
2022-10-03 12:41:59 +01:00
2022-12-01 15:09:10 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2021-10-18 12:54:41 +01:00
2022-11-21 13:09:07 +00:00
2022-10-31 10:43:04 +00:00
2021-01-29 20:39:14 -08:00
2022-08-25 16:07:42 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2021-06-28 14:29:45 -07:00
2022-02-04 16:25:21 +01:00
2022-10-26 15:24:36 +01:00
2022-04-06 22:09:39 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-29 11:58:54 +01:00
2022-07-22 12:53:22 +01:00
2022-08-24 19:30:07 -07:00
2022-02-07 20:12:45 -08:00
2021-10-15 11:33:08 +01:00
2022-10-31 20:14:27 -07:00
2022-12-30 07:25:52 +00:00
2022-07-29 11:58:54 +01:00
2022-12-30 07:25:52 +00:00
2022-02-17 07:00:39 -06:00
2021-11-16 13:16:54 +00:00
2022-02-17 11:44:20 -08:00
2022-07-22 12:53:22 +01:00
2022-04-25 11:40:45 +01:00
2022-04-11 17:37:50 -07:00
2022-10-03 07:59:06 +01:00
2022-12-10 22:44:43 +01:00
2022-11-17 10:42:45 +01:00
2022-09-29 07:18:00 +02:00
2022-07-22 12:53:22 +01:00
2022-10-31 20:14:27 -07:00
2022-09-02 20:34:32 -07:00
2022-12-12 15:41:44 -08:00
2020-06-20 17:22:22 -07:00
2021-03-23 14:14:50 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2021-12-07 20:44:59 -08:00
2021-10-13 09:40:46 -07:00
2021-07-27 13:05:56 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-28 11:29:36 +02:00
2021-11-07 19:25:29 +00:00
2021-08-30 01:51:36 +02:00
2023-01-10 13:24:12 +01:00
2022-10-12 12:57:19 +02:00
2022-09-23 06:56:08 -07:00
2022-04-01 12:04:15 +01:00
2021-10-29 13:23:51 +01:00
2020-03-02 11:16:27 -08:00
2021-03-26 15:14:56 -07:00
2022-07-22 12:53:22 +01:00
2020-05-29 21:20:20 -07:00
2022-12-12 13:11:24 -08:00
2022-11-18 12:14:55 +00:00
2022-07-22 12:53:22 +01:00
2022-03-03 11:55:12 -08:00
2022-11-18 10:29:50 +00:00
2022-05-11 12:43:10 +01:00
2022-10-24 11:04:43 +01:00
2021-12-10 06:38:26 -08:00
2022-07-22 12:53:22 +01:00
2022-11-03 13:21:54 -07:00
2022-07-22 12:53:22 +01:00
2021-09-24 14:07:10 +01:00
2022-11-29 15:34:22 +01:00
2022-07-22 12:53:22 +01:00
2022-04-15 10:43:47 +01:00
2020-03-04 13:25:55 -08:00
2022-12-01 12:42:46 +01:00
2022-10-02 16:07:17 +01:00
2022-09-29 18:52:05 -07:00
2022-07-22 12:53:22 +01:00
2022-07-15 18:50:35 -07:00
2021-08-09 15:34:21 -07:00
2022-07-22 12:53:22 +01:00
2022-07-14 15:27:35 -07:00
2022-06-19 10:00:02 +01:00
2022-10-11 17:42:58 -06:00
2022-07-22 12:53:22 +01:00
2022-02-02 14:45:18 +00:00
2022-08-01 11:59:23 -07:00
2022-07-25 13:25:39 +01:00
2020-06-23 20:27:09 -07:00
2022-10-31 18:10:21 -07:00
2023-01-16 13:25:34 +00:00
2020-07-13 11:03:44 -07:00
2022-07-22 12:53:22 +01:00
2022-01-04 12:17:35 +00:00
2021-04-28 14:06:45 -07:00
2022-07-27 13:24:42 +01:00
2022-10-25 11:35:16 +02:00
2023-02-10 19:53:42 -08:00
2021-08-03 13:05:26 +01:00
2022-07-22 12:53:22 +01:00
2022-07-18 11:24:10 +01:00
2022-11-09 19:06:13 -08:00
2022-12-28 12:11:32 +00:00
2022-12-12 11:27:42 -08:00
2022-09-22 17:27:41 -07:00
2022-10-24 09:40:39 +01:00
2022-12-12 15:04:39 -08:00
2022-07-22 12:53:22 +01:00
2022-11-08 16:42:28 +00:00
2022-10-24 10:52:50 +01:00
2022-10-12 17:50:37 -07:00
2022-03-01 08:38:02 +00:00
2022-07-22 12:53:22 +01:00
2022-09-30 07:55:46 -07:00
2021-12-29 08:48:14 -08:00
2022-09-26 13:28:19 -07:00
2022-12-12 11:27:42 -08:00
2022-09-22 17:16:22 +02:00