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-02-20 15:32:45 +01:00
2024-05-01 18:37:07 -07:00
2024-04-26 15:34:00 +02:00
2024-01-11 10:07:29 -08:00
2024-05-01 18:37:07 -07:00
2024-04-30 18:32:38 -07:00
2024-04-30 18:32:38 -07:00
2024-03-29 15:03:11 -07:00
2024-04-30 18:46:52 -07:00
2024-04-22 12:20:09 -07:00
2024-04-30 18:32:38 -07:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00