WARNING: possible circular locking dependency detected ------------------------------------------------------ kworker/u8:1/12 is trying to acquire lock: but task is already holding lock: ffff8880790c0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: class_wiphy_constructor include/net/cfg80211.h:6061 [inline] ffff8880790c0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: ieee80211_remove_interfaces+0xf1/0x720 net/mac80211/iface.c:2280 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&rdev->wiphy.mtx){+.+.}-{4:4}: class_wiphy_constructor include/net/cfg80211.h:6061 [inline] ieee80211_open+0x132/0x210 net/mac80211/iface.c:445 __dev_open+0x2d4/0x540 net/core/dev.c:1635 team_port_add drivers/net/team/team_core.c:1229 [inline] team_add_slave+0xaf6/0x2190 drivers/net/team/team_core.c:1988 do_setlink.constprop.0+0xb5b/0x3f80 net/core/rtnetlink.c:3125 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2533 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1338 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:733 [inline] ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2573 __sys_sendmsg+0x16e/0x220 net/socket.c:2659 -> #0 (team->team_lock_key#3){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3163 [inline] check_prevs_add kernel/locking/lockdep.c:3282 [inline] validate_chain kernel/locking/lockdep.c:3906 [inline] __lock_acquire+0x249e/0x3c40 kernel/locking/lockdep.c:5228 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851 team_del_slave+0x31/0x1b0 drivers/net/team/team_core.c:2002 call_netdevice_notifiers_extack net/core/dev.c:2244 [inline] call_netdevice_notifiers net/core/dev.c:2258 [inline] unregister_netdevice_many_notify+0xc8a/0x1f30 net/core/dev.c:11884 unregister_netdevice include/linux/netdevice.h:3337 [inline] _cfg80211_unregister_wdev+0x64b/0x830 net/wireless/core.c:1248 ieee80211_remove_interfaces+0x34f/0x720 net/mac80211/iface.c:2305 mac80211_hwsim_del_radio drivers/net/wireless/virtual/mac80211_hwsim.c:5664 [inline] hwsim_exit_net+0x3ad/0x7d0 drivers/net/wireless/virtual/mac80211_hwsim.c:6544 cleanup_net+0x5c6/0xb30 net/core/net_namespace.c:652 kthread+0x3af/0x750 kernel/kthread.c:464 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 other info that might help us debug this: CPU0 CPU1 lock(&rdev->wiphy.mtx); lock(team->team_lock_key#3); lock(team->team_lock_key#3); *** DEADLOCK *** 5 locks held by kworker/u8:1/12: #1: ffffc90000117d18 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214 stack backtrace: Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 veth1_vlan: left promiscuous mode veth1_vlan: left promiscuous mode