Kuniyuki Iwashima bf4ea58874 arp: Convert ioctl(SIOCGARP) to RCU.
ioctl(SIOCGARP) holds rtnl_lock() to get netdev by __dev_get_by_name()
and copy dev->name safely and calls neigh_lookup() later, which looks
up a neighbour entry under RCU.

Let's replace __dev_get_by_name() with dev_get_by_name_rcu() and strscpy()
with netdev_copy_name() to avoid locking rtnl_lock().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240430015813.71143-8-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-01 18:37:07 -07:00
..
2024-04-30 18:32:38 -07:00
2024-05-01 18:37:07 -07:00
2024-04-11 19:29:22 -07:00
2024-04-30 18:32:38 -07:00
2024-01-23 15:13:55 +01:00
2024-04-30 18:32:38 -07:00
2024-01-04 10:23:10 -08:00
2023-10-16 21:05:33 -07:00
2024-04-30 18:46:52 -07:00
2021-05-17 15:29:35 -07:00
2024-04-30 18:32:38 -07:00
2024-04-30 18:46:52 -07:00
2024-04-30 18:46:52 -07:00
2022-12-20 03:13:45 +01:00
2024-04-30 18:46:52 -07:00
2024-04-30 18:32:38 -07:00
2023-09-14 16:16:36 +02:00