]> www.infradead.org Git - users/hch/misc.git/commit
arp: Convert SIOCDARP and SIOCSARP to per-netns RTNL.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 11 Feb 2025 04:50:57 +0000 (13:50 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Feb 2025 10:33:44 +0000 (11:33 +0100)
commit7aca0d8a727da503a8adeb6866a136ded5bea4b1
tree6b0c209ac4c67e71cc86c0bdaf74e1c0ce43b69f
parenta3783dbf2574c2d76b37bcb8b669852f494e9932
arp: Convert SIOCDARP and SIOCSARP to per-netns RTNL.

ioctl(SIOCDARP/SIOCSARP) operates on a single netns fetched from
an AF_INET socket in inet_ioctl().

Let's hold rtnl_net_lock() for SIOCDARP and SIOCSARP.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250211045057.10419-1-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/arp.c