Kuniyuki Iwashima
ab5fb73ffa
ping: Fix potentail NULL deref for /proc/net/icmp.
...
After commit dbca1596bbb0 ("ping: convert to RCU lookups, get rid
of rwlock"), we use RCU for ping sockets, but we should use spinlock
for /proc/net/icmp to avoid a potential NULL deref mentioned in
the previous patch.
Let's go back to using spinlock there.
Note we can convert ping sockets to use hlist instead of hlist_nulls
because we do not use SLAB_TYPESAFE_BY_RCU for ping sockets.
Fixes: dbca1596bbb0 ("ping: convert to RCU lookups, get rid of rwlock")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-04 18:56:58 -07:00
..
2020-08-10 12:06:44 -07:00
2023-03-06 12:09:48 +01:00
2023-02-15 10:25:21 +00:00
2023-02-13 18:35:15 +08:00
2022-08-22 17:59:37 -07:00
2023-01-25 10:25:57 -08:00
2023-02-01 20:54:27 -08:00
2022-10-20 17:24:59 -07:00
2022-11-30 13:17:52 -08: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-01-23 21:37:39 -08:00
2022-11-22 20:18:20 -08:00
2023-01-24 10:58:11 +01: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
2022-11-18 02:15:15 +01: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-15 00:23:14 -07: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-02-01 20:54:27 -08:00
2023-01-25 22:45:00 -08:00
2022-10-03 07:59:06 +01:00
2023-03-15 00:04:04 -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
2022-11-16 12:48:44 +00: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-01-24 10:58:11 +01:00
2023-01-23 21:37:25 -08:00
2022-05-16 13:03:29 +02:00
2019-05-21 10:50:45 +02:00
2022-10-27 10:17:40 -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-04 18:56:58 -07:00
2023-04-04 18:56:58 -07:00
2022-11-18 02:15:15 +01:00
2022-12-12 13:11:24 -08:00
2022-11-16 09:43:35 +00:00
2023-02-02 00:25:14 +01:00
2022-04-06 12:05:41 -07:00
2023-03-03 17:25:15 +01:00
2022-10-16 15:27:07 -07:00
2023-02-02 00:25:14 +01:00
2023-02-02 00:25:14 +01:00
2023-02-02 00:25:14 +01:00
2018-10-10 22:26:00 -07: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
2022-12-13 15:47:48 -08:00
2023-02-02 21:14:50 -08:00
2022-04-06 12:05:41 -07:00
2022-08-29 12:47:15 +01:00
2023-02-27 11:59:29 -08:00
2022-04-06 12:05:41 -07:00
2022-10-03 12:38:34 +01:00
2023-03-09 23:12:00 -08:00
2022-12-20 03:13:45 +01:00
2022-04-28 13:02:01 -07:00
2022-07-20 10:14:50 +01:00
2022-04-06 12:05:41 -07:00
2022-08-17 10:19:22 +01:00
2023-01-19 09:26:16 -08: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
2023-02-23 17:09:35 -08: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
2020-07-10 13:54:00 -07:00
2023-01-25 22:45:00 -08:00
2022-10-12 17:50:37 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2022-06-09 21:52:55 -07:00
2022-06-08 10:10:13 -07:00
2020-05-06 09:40:08 +02:00
2022-09-29 07:18:00 +02:00