device veth0_vlan entered promiscuous mode ============================================ WARNING: possible recursive locking detected 5.15.162-syzkaller #0 Not tainted -------------------------------------------- syz.0.7678/22209 is trying to acquire lock: ffff888078310d00 (team->team_lock_key#20){+.+.}-{3:3}, at: team_port_change_check+0x51/0x1e0 drivers/net/team/team.c:3004 but task is already holding lock: ffff888078310d00 (team->team_lock_key#20){+.+.}-{3:3}, at: team_add_slave+0xab/0x27a0 drivers/net/team/team.c:1981 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(team->team_lock_key#20); lock(team->team_lock_key#20); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz.0.7678/22209: #0: ffffffff8d9e8088 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9e8088 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 #1: ffff888078310d00 (team->team_lock_key#20){+.+.}-{3:3}, at: team_add_slave+0xab/0x27a0 drivers/net/team/team.c:1981 stack backtrace: CPU: 0 PID: 22209 Comm: syz.0.7678 Not tainted 5.15.162-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2946 [inline] check_deadlock kernel/locking/lockdep.c:2989 [inline] validate_chain+0x46d2/0x5930 kernel/locking/lockdep.c:3775 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __mutex_lock_common+0x1da/0x25a0 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 team_port_change_check+0x51/0x1e0 drivers/net/team/team.c:3004 team_device_event+0x4a7/0x580 drivers/net/team/team.c:3027 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 __dev_notify_flags+0x304/0x610 dev_change_flags+0xe7/0x190 net/core/dev.c:8889 vlan_device_event+0x442/0x1dd0 net/8021q/vlan.c:469 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2018 [inline] call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] dev_open+0x1c1/0x260 net/core/dev.c:1547 team_port_add drivers/net/team/team.c:1212 [inline] team_add_slave+0x981/0x27a0 drivers/net/team/team.c:1982 do_set_master net/core/rtnetlink.c:2543 [inline] do_setlink+0xe71/0x3b00 net/core/rtnetlink.c:2748 rtnl_setlink+0x3eb/0x540 net/core/rtnetlink.c:3034 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485 __sys_sendmsg net/socket.c:2514 [inline] __do_sys_sendmsg net/socket.c:2523 [inline] __se_sys_sendmsg+0x19a/0x260 net/socket.c:2521 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff134722bd9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1331a3048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff1348b0f60 RCX: 00007ff134722bd9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003 RBP: 00007ff134791e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff1348b0f60 R15: 00007ffed6f89c68