diff options
author | 2025-07-16 19:57:17 +0800 | |
---|---|---|
committer | 2025-07-17 07:37:59 -0700 | |
commit | be5dcaed694e4255dc02dd0acfe036708c535def (patch) | |
tree | f66af8dec7f71265d8a3d93c614a56eed0f16be8 /tools/perf/scripts/python | |
parent | net/mlx5: Update the list of the PCI supported devices (diff) | |
download | wireguard-linux-be5dcaed694e4255dc02dd0acfe036708c535def.tar.xz wireguard-linux-be5dcaed694e4255dc02dd0acfe036708c535def.zip |
virtio-net: fix recursived rtnl_lock() during probe()
The deadlock appears in a stack trace like:
virtnet_probe()
rtnl_lock()
virtio_config_changed_work()
netdev_notify_peers()
rtnl_lock()
It happens if the VMM sends a VIRTIO_NET_S_ANNOUNCE request while the
virtio-net driver is still probing.
The config_work in probe() will get scheduled until virtnet_open() enables
the config change notification via virtio_config_driver_enable().
Fixes: df28de7b0050 ("virtio-net: synchronize operstate with admin state on up/down")
Signed-off-by: Zigit Zo <zuozhijie@bytedance.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250716115717.1472430-1-zuozhijie@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions