Kuniyuki Iwashima
ab5fb73ffa
ping: Fix potentail NULL deref for /proc/net/icmp.
...
After commit dbca1596bb ("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: dbca1596bb ("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
..
2022-06-09 21:53:28 +02:00
2023-03-01 08:52:49 -08:00
2022-12-25 13:38:09 -08:00
2022-10-28 20:13:54 -07:00
2022-11-24 17:12:15 +01:00
2022-11-16 13:31:03 +00:00
2023-01-21 19:01:59 +01:00
2023-03-23 13:09:38 -07:00
2023-03-06 11:15:54 -08:00
2023-02-22 21:25:23 -08:00
2023-03-02 22:22:07 -08:00
2023-03-27 14:40:45 +02:00
2023-02-21 18:24:12 -08:00
2023-04-02 13:26:21 +01:00
2023-01-20 09:33:22 +00:00
2023-02-10 19:53:42 -08:00
2023-02-20 11:38:35 +00:00
2022-11-01 10:04:52 -07:00
2023-03-30 11:32:46 -07:00
2022-12-07 20:02:44 -08:00
2023-02-21 09:05:01 -08:00
2023-03-16 21:11:03 -07:00
2023-03-17 09:13:53 +01:00
2023-04-04 18:56:58 -07:00
2023-04-04 18:56:58 -07:00
2023-03-16 17:34:40 -07:00
2023-01-23 11:26:50 +00:00
2023-02-13 09:30:14 +00:00
2023-03-31 09:25:12 +01:00
2022-06-09 21:52:55 -07:00
2023-03-30 11:19:53 +02:00
2023-02-20 16:40:52 -08:00
2023-01-28 00:26:09 -08:00
2023-02-15 10:26:37 +00:00
2023-03-10 21:42:56 -08:00
2023-03-16 17:41:28 +00:00
2023-03-08 12:26:42 +01:00
2022-08-29 12:47:15 +01:00
2023-02-09 22:30:24 -08:00
2023-01-30 07:30:47 +00:00
2023-03-07 13:37:05 -08:00
2023-02-23 17:55:40 -08:00
2023-02-15 10:25:21 +00:00
2023-01-23 11:26:50 +00:00
2022-08-29 12:47:15 +01:00
2023-04-03 10:15:45 +01:00
2023-02-13 09:33:39 +00:00
2023-02-14 12:21:14 +01:00
2023-01-28 00:19:57 -08:00
2023-02-21 18:24:12 -08:00
2023-03-16 21:25:45 -07:00
2023-04-02 13:44:58 +01:00
2023-03-15 08:15:19 +00:00
2022-07-08 18:38:44 -07:00
2023-03-25 13:32:43 -07:00
2022-06-09 21:52:55 -07:00
2023-02-21 18:24:12 -08:00
2023-03-06 13:26:16 -08:00
2023-03-08 23:26:03 -08:00
2023-03-31 09:42:30 +01:00
2023-03-17 13:31:16 -07:00
2023-01-25 09:51:04 +00:00
2023-03-16 16:02:55 +01:00
2023-03-16 17:23:48 -07:00
2022-11-25 13:01:55 -05:00
2022-08-22 14:26:30 +01:00
2022-09-20 14:23:56 -07:00
2023-01-05 22:12:00 -08:00
2023-03-08 23:26:51 -08:00