====================================================== WARNING: possible circular locking dependency detected 6.14.0-rc4-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor196/5845 is trying to acquire lock: ffff888033df0e00 (team->team_lock_key){+.+.}-{4:4}, at: team_del_slave+0x31/0x1b0 drivers/net/team/team_core.c:2002 but task is already holding lock: ffff88801cfb0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: nl80211_del_interface+0xfb/0x190 net/wireless/nl80211.c:4559 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&rdev->wiphy.mtx){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:585 [inline] __mutex_lock+0x19b/0xb10 kernel/locking/mutex.c:730 class_wiphy_constructor include/net/cfg80211.h:6061 [inline] ieee80211_open+0x132/0x210 net/mac80211/iface.c:445 __dev_open+0x2d7/0x540 net/core/dev.c:1635 dev_open net/core/dev.c:1671 [inline] dev_open+0xf4/0x160 net/core/dev.c:1664 team_port_add drivers/net/team/team_core.c:1229 [inline] team_add_slave+0xaf6/0x2190 drivers/net/team/team_core.c:1988 do_set_master+0x1bf/0x230 net/core/rtnetlink.c:2926 do_setlink.constprop.0+0xb5b/0x3f80 net/core/rtnetlink.c:3125 rtnl_changelink net/core/rtnetlink.c:3733 [inline] __rtnl_newlink net/core/rtnetlink.c:3885 [inline] rtnl_newlink+0x1306/0x1d60 net/core/rtnetlink.c:4022 rtnetlink_rcv_msg+0x95e/0xea0 net/core/rtnetlink.c:6912 netlink_rcv_skb+0x16e/0x440 net/netlink/af_netlink.c:2543 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x53f/0x7f0 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:733 [inline] ____sys_sendmsg+0xab2/0xc90 net/socket.c:2573 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2627 __sys_sendmsg+0x16e/0x220 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (team->team_lock_key){+.+.}-{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 __mutex_lock_common kernel/locking/mutex.c:585 [inline] __mutex_lock+0x19b/0xb10 kernel/locking/mutex.c:730 team_del_slave+0x31/0x1b0 drivers/net/team/team_core.c:2002 team_device_event+0xd0/0x770 drivers/net/team/team_core.c:2997 notifier_call_chain+0xba/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2212 call_netdevice_notifiers_extack net/core/dev.c:2250 [inline] call_netdevice_notifiers net/core/dev.c:2264 [inline] unregister_netdevice_many_notify+0xc8a/0x1f30 net/core/dev.c:11890 unregister_netdevice_many net/core/dev.c:11954 [inline] unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11824 unregister_netdevice include/linux/netdevice.h:3337 [inline] _cfg80211_unregister_wdev+0x64b/0x830 net/wireless/core.c:1248 ieee80211_if_remove+0x250/0x400 net/mac80211/iface.c:2245 ieee80211_del_iface+0x16/0x20 net/mac80211/cfg.c:225 rdev_del_virtual_intf net/wireless/rdev-ops.h:62 [inline] cfg80211_remove_virtual_intf+0xe2/0x2b0 net/wireless/util.c:2871 nl80211_del_interface+0x106/0x190 net/wireless/nl80211.c:4561 genl_family_rcv_msg_doit+0x205/0x2f0 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x565/0x800 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x16e/0x440 net/netlink/af_netlink.c:2543 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x53f/0x7f0 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:733 [inline] ____sys_sendmsg+0xab2/0xc90 net/socket.c:2573 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2627 __sys_sendmsg+0x16e/0x220 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rdev->wiphy.mtx); lock(team->team_lock_key); lock(&rdev->wiphy.mtx); lock(team->team_lock_key); *** DEADLOCK *** 3 locks held by syz-executor196/5845: #0: ffffffff8ff99c70 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fef8ee8 (rtnl_mutex){+.+.}-{4:4}, at: nl80211_pre_doit+0xb4/0xb10 net/wireless/nl80211.c:16664 #2: ffff88801cfb0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: nl80211_del_interface+0xfb/0x190 net/wireless/nl80211.c:4559 stack backtrace: CPU: 1 UID: 0 PID: 5845 Comm: syz-executor196 Not tainted 6.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_circular_bug+0x490/0x760 kernel/locking/lockdep.c:2076 check_noncircular+0x31a/0x400 kernel/locking/lockdep.c:2208 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 __mutex_lock_common kernel/locking/mutex.c:585 [inline] __mutex_lock+0x19b/0xb10 kernel/locking/mutex.c:730 team_del_slave+0x31/0x1b0 drivers/net/team/team_core.c:2002 team_device_event+0xd0/0x770 drivers/net/team/team_core.c:2997 notifier_call_chain+0xba/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2212 call_netdevice_notifiers_extack net/core/dev.c:2250 [inline] call_netdevice_notifiers net/core/dev.c:2264 [inline] unregister_netdevice_many_notify+0xc8a/0x1f30 net/core/dev.c:11890 unregister_netdevice_many net/core/dev.c:11954 [inline] unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11824 unregister_netdevice include/linux/netdevice.h:3337 [inline] _cfg80211_unregister_wdev+0x64b/0x830 net/wireless/core.c:1248 ieee80211_if_remove+0x250/0x400 net/mac80211/iface.c:2245 ieee80211_del_iface+0x16/0x20 net/mac80211/cfg.c:225 rdev_del_virtual_intf net/wireless/rdev-ops.h:62 [inline] cfg80211_remove_virtual_intf+0xe2/0x2b0 net/wireless/util.c:2871 nl80211_del_interface+0x106/0x190 net/wireless/nl80211.c:4561 genl_family_rcv_msg_doit+0x205/0x2f0 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x565/0x800 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x16e/0x440 net/netlink/af_netlink.c:2543 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x53f/0x7f0 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:733 [inline] ____sys_sendmsg+0xab2/0xc90 net/socket.c:2573 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2627 __sys_sendmsg+0x16e/0x220 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9f64fe67e9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff03dda828 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f9f64fe67e9 RDX: 0000000000000000 RSI: 0000400000000280 RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fff03dda8b0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9f65033421 R13: 0000000000000047 R14: 0000000000050012 R15: 0000000000000003 team0: Port device wlan1 removed