aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-04-15 15:15:52 +0000
committerJakub Kicinski <[email protected]>2025-04-17 01:28:11 +0000
commit4798cfa2097f0833d54d8f5ce20ef14631917839 (patch)
treec731ce67262b4d0d26934feac33f9d7ef583f58a /net/unix/af_unix.c
parentptp: ocp: fix start time alignment in ptp_ocp_signal_set (diff)
downloadkernel-4798cfa2097f0833d54d8f5ce20ef14631917839.tar.gz
kernel-4798cfa2097f0833d54d8f5ce20ef14631917839.zip
net: don't try to ops lock uninitialized devs
We need to be careful when operating on dev while in rtnl_create_link(). Some devices (vxlan) initialize netdev_ops in ->newlink, so later on. Avoid using netdev_lock_ops(), the device isn't registered so we cannot legally call its ops or generate any notifications for it. netdev_ops_assert_locked_or_invisible() is safe to use, it checks registration status first. Reported-by: [email protected] Fixes: 04efcee6ef8d ("net: hold instance lock during NETDEV_CHANGE") Acked-by: Stanislav Fomichev <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions