device team_slave_0 left promiscuous mode ============================================ WARNING: possible recursive locking detected 5.14.0-rc2-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/26620 is trying to acquire lock: ffff888069d26c78 (team->team_lock_key#2){+.+.}-{3:3}, at: team_port_change_check drivers/net/team/team.c:2970 [inline] ffff888069d26c78 (team->team_lock_key#2){+.+.}-{3:3}, at: team_device_event+0x36a/0xa90 drivers/net/team/team.c:2996 but task is already holding lock: ffff888069d26c78 (team->team_lock_key#2){+.+.}-{3:3}, at: team_uninit+0x3c/0x1c0 drivers/net/team/team.c:1670 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(team->team_lock_key#2); lock(team->team_lock_key#2); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.2/26620: #0: ffffffff8d0cad28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d0cad28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3be/0xb80 net/core/rtnetlink.c:5571 #1: ffff888069d26c78 (team->team_lock_key#2){+.+.}-{3:3}, at: team_uninit+0x3c/0x1c0 drivers/net/team/team.c:1670 stack backtrace: CPU: 1 PID: 26620 Comm: syz-executor.2 Not tainted 5.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105 print_deadlock_bug kernel/locking/lockdep.c:2944 [inline] check_deadlock kernel/locking/lockdep.c:2987 [inline] validate_chain kernel/locking/lockdep.c:3776 [inline] __lock_acquire.cold+0x149/0x3ab kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __mutex_lock_common kernel/locking/mutex.c:959 [inline] __mutex_lock+0x12a/0x10a0 kernel/locking/mutex.c:1104 team_port_change_check drivers/net/team/team.c:2970 [inline] team_device_event+0x36a/0xa90 drivers/net/team/team.c:2996 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2123 call_netdevice_notifiers_extack net/core/dev.c:2135 [inline] call_netdevice_notifiers net/core/dev.c:2149 [inline] dev_close_many+0x2ff/0x620 net/core/dev.c:1724 vlan_device_event+0x8ef/0x2020 net/8021q/vlan.c:456 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2123 call_netdevice_notifiers_extack net/core/dev.c:2135 [inline] call_netdevice_notifiers net/core/dev.c:2149 [inline] dev_close_many+0x2ff/0x620 net/core/dev.c:1724 dev_close net/core/dev.c:1746 [inline] dev_close+0x16d/0x210 net/core/dev.c:1740 team_port_del+0x34e/0x960 drivers/net/team/team.c:1349 team_uninit+0xbb/0x1c0 drivers/net/team/team.c:1672 unregister_netdevice_many+0xc85/0x1790 net/core/dev.c:11110 rtnl_delete_link net/core/rtnetlink.c:3065 [inline] rtnl_dellink+0x354/0xa80 net/core/rtnetlink.c:3117 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5574 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:703 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:723 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2392 ___sys_sendmsg+0xf3/0x170 net/socket.c:2446 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2475 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f657dee9188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe31453a7f R14: 00007f657dee9300 R15: 0000000000022000