diff options
author | 2025-04-15 08:15:52 -0700 | |
---|---|---|
committer | 2025-04-16 18:28:11 -0700 | |
commit | 4798cfa2097f0833d54d8f5ce20ef14631917839 (patch) | |
tree | c731ce67262b4d0d26934feac33f9d7ef583f58a /scripts/lib/kdoc/kdoc_output.py | |
parent | ptp: ocp: fix start time alignment in ptp_ocp_signal_set (diff) | |
download | linux-rng-4798cfa2097f0833d54d8f5ce20ef14631917839.tar.xz linux-rng-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: syzbot+de1c7d68a10e3f123bdd@syzkaller.appspotmail.com
Fixes: 04efcee6ef8d ("net: hold instance lock during NETDEV_CHANGE")
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250415151552.768373-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions