netlink: 60 bytes leftover after parsing attributes in process `syz.0.15'. device wlan1 entered promiscuous mode team0: Port device wlan1 added ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.0.15/4742 is trying to acquire lock: ffff0000d1f4cd00 (team->team_lock_key#2){+.+.}-{3:3}, at: team_del_slave+0x30/0x19c drivers/net/team/team.c:2011 but task is already holding lock: ffff0000d4dd8688 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: nl80211_del_interface+0x104/0x5d4 net/wireless/nl80211.c:4118 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&rdev->wiphy.mtx){+.+.}-{3:3}: __mutex_lock_common+0x1a4/0x1ea4 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xac/0x11c kernel/locking/mutex.c:743 wiphy_lock include/net/cfg80211.h:5319 [inline] ieee80211_open+0x138/0x1dc net/mac80211/iface.c:361 __dev_open+0x300/0x4ec net/core/dev.c:1550 dev_open+0xa8/0x220 net/core/dev.c:1586 team_port_add drivers/net/team/team.c:1222 [inline] team_add_slave+0x4e4/0x2064 drivers/net/team/team.c:1997 do_set_master net/core/rtnetlink.c:2589 [inline] do_setlink+0xb40/0x20f8 net/core/rtnetlink.c:2800 __rtnl_newlink net/core/rtnetlink.c:3464 [inline] rtnl_newlink+0x1128/0x14ac net/core/rtnetlink.c:3586 rtnetlink_rcv_msg+0x6b0/0xcf8 net/core/rtnetlink.c:5698 netlink_rcv_skb+0x218/0x3dc net/netlink/af_netlink.c:2519 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5716 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x614/0x884 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x6ec/0x9e4 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x578/0x894 net/socket.c:2446 ___sys_sendmsg+0x1f0/0x27c net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg net/socket.c:2536 [inline] __arm64_sys_sendmsg+0x1bc/0x278 net/socket.c:2536 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x28c arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x5c/0x140 arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1d4 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 -> #0 (team->team_lock_key#2){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3120 [inline] check_prevs_add kernel/locking/lockdep.c:3239 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x2f2c/0x71fc kernel/locking/lockdep.c:5120 lock_acquire+0x1f8/0x61c kernel/locking/lockdep.c:5737 __mutex_lock_common+0x1a4/0x1ea4 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xac/0x11c kernel/locking/mutex.c:743 team_del_slave+0x30/0x19c drivers/net/team/team.c:2011 team_device_event+0x274/0x964 drivers/net/team/team.c:3055 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd8/0x168 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2062 [inline] call_netdevice_notifiers_extack net/core/dev.c:2074 [inline] call_netdevice_notifiers net/core/dev.c:2088 [inline] unregister_netdevice_many+0xe90/0x1870 net/core/dev.c:11160 unregister_netdevice_queue+0x2b4/0x308 net/core/dev.c:11093 unregister_netdevice include/linux/netdevice.h:3047 [inline] _cfg80211_unregister_wdev+0x160/0x4a4 net/wireless/core.c:1198 cfg80211_unregister_wdev+0x24/0x34 net/wireless/core.c:1243 ieee80211_if_remove+0x1a8/0x298 net/mac80211/iface.c:2116 ieee80211_del_iface+0x20/0x34 net/mac80211/cfg.c:145 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline] nl80211_del_interface+0x1dc/0x5d4 net/wireless/nl80211.c:4120 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline] genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0x974/0xc64 net/netlink/genetlink.c:792 netlink_rcv_skb+0x218/0x3dc net/netlink/af_netlink.c:2519 genl_rcv+0x38/0x50 net/netlink/genetlink.c:803 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x614/0x884 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x6ec/0x9e4 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x578/0x894 net/socket.c:2446 ___sys_sendmsg+0x1f0/0x27c net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg net/socket.c:2536 [inline] __arm64_sys_sendmsg+0x1bc/0x278 net/socket.c:2536 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x28c arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x5c/0x140 arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1d4 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rdev->wiphy.mtx); lock(team->team_lock_key#2); lock(&rdev->wiphy.mtx); lock(team->team_lock_key#2); *** DEADLOCK *** 3 locks held by syz.0.15/4742: #0: ffff800016545170 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x50 net/netlink/genetlink.c:802 #1: ffff8000164e9868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 #2: ffff0000d4dd8688 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: nl80211_del_interface+0x104/0x5d4 net/wireless/nl80211.c:4118 stack backtrace: CPU: 1 PID: 4742 Comm: syz.0.15 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: dump_backtrace+0x0/0x458 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 print_circular_bug+0x148/0x1b0 kernel/locking/lockdep.c:2051 check_noncircular+0x290/0x370 kernel/locking/lockdep.c:2178 check_prev_add kernel/locking/lockdep.c:3120 [inline] check_prevs_add kernel/locking/lockdep.c:3239 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x2f2c/0x71fc kernel/locking/lockdep.c:5120 lock_acquire+0x1f8/0x61c kernel/locking/lockdep.c:5737 __mutex_lock_common+0x1a4/0x1ea4 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xac/0x11c kernel/locking/mutex.c:743 team_del_slave+0x30/0x19c drivers/net/team/team.c:2011 team_device_event+0x274/0x964 drivers/net/team/team.c:3055 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd8/0x168 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2062 [inline] call_netdevice_notifiers_extack net/core/dev.c:2074 [inline] call_netdevice_notifiers net/core/dev.c:2088 [inline] unregister_netdevice_many+0xe90/0x1870 net/core/dev.c:11160 unregister_netdevice_queue+0x2b4/0x308 net/core/dev.c:11093 unregister_netdevice include/linux/netdevice.h:3047 [inline] _cfg80211_unregister_wdev+0x160/0x4a4 net/wireless/core.c:1198 cfg80211_unregister_wdev+0x24/0x34 net/wireless/core.c:1243 ieee80211_if_remove+0x1a8/0x298 net/mac80211/iface.c:2116 ieee80211_del_iface+0x20/0x34 net/mac80211/cfg.c:145 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline] nl80211_del_interface+0x1dc/0x5d4 net/wireless/nl80211.c:4120 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline] genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0x974/0xc64 net/netlink/genetlink.c:792 netlink_rcv_skb+0x218/0x3dc net/netlink/af_netlink.c:2519 genl_rcv+0x38/0x50 net/netlink/genetlink.c:803 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x614/0x884 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x6ec/0x9e4 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x578/0x894 net/socket.c:2446 ___sys_sendmsg+0x1f0/0x27c net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg net/socket.c:2536 [inline] __arm64_sys_sendmsg+0x1bc/0x278 net/socket.c:2536 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x28c arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x5c/0x140 arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1d4 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 team0: Port device wlan1 removed