aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-04-30 01:58:13 +0000
committerJakub Kicinski <[email protected]>2024-05-02 01:37:07 +0000
commitbf4ea58874df3d43f7264709cec7fe320616552c (patch)
tree54e09e532fed923864889afc954475987af31738 /net/dsa/dsa.c
parentnet: Protect dev->name by seqlock. (diff)
downloadkernel-bf4ea58874df3d43f7264709cec7fe320616552c.tar.gz
kernel-bf4ea58874df3d43f7264709cec7fe320616552c.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions