IPv6: ADDRCONF(NETDEV_UP): macvtap1: link is not ready 8021q: adding VLAN 0 to HW filter on device macvtap1 ============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.3/30276 is trying to acquire lock: 00000000906c4559 (&team->lock){+.+.}, at: team_vlan_rx_add_vid+0x38/0x1e0 drivers/net/team/team.c:1896 but task is already holding lock: 0000000021125526 (&team->lock){+.+.}, at: team_add_slave+0x98/0x1fa0 drivers/net/team/team.c:1975 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&team->lock); lock(&team->lock); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.3/30276: #0: 00000000527a3ca0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 00000000527a3ca0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4779 #1: 0000000021125526 (&team->lock){+.+.}, at: team_add_slave+0x98/0x1fa0 drivers/net/team/team.c:1975 stack backtrace: CPU: 0 PID: 30276 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:1764 [inline] check_deadlock kernel/locking/lockdep.c:1808 [inline] validate_chain kernel/locking/lockdep.c:2404 [inline] __lock_acquire.cold+0x121/0x57e kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 team_vlan_rx_add_vid+0x38/0x1e0 drivers/net/team/team.c:1896 vlan_add_rx_filter_info+0x13c/0x1c0 net/8021q/vlan_core.c:210 __vlan_vid_add net/8021q/vlan_core.c:278 [inline] vlan_vid_add+0x3ee/0x7e0 net/8021q/vlan_core.c:308 vlan_add_rx_filter_info+0x13c/0x1c0 net/8021q/vlan_core.c:210 __vlan_vid_add net/8021q/vlan_core.c:278 [inline] vlan_vid_add+0x3ee/0x7e0 net/8021q/vlan_core.c:308 vlan_device_event.cold+0x28/0x2d net/8021q/vlan.c:382 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 call_netdevice_notifiers net/core/dev.c:1762 [inline] dev_open net/core/dev.c:1442 [inline] dev_open+0x128/0x140 net/core/dev.c:1430 team_port_add drivers/net/team/team.c:1220 [inline] team_add_slave+0xb02/0x1fa0 drivers/net/team/team.c:1976 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321 rtnl_newlink+0x1279/0x15c0 net/core/rtnetlink.c:3170 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc3a439f5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc3a2cf1168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc3a44c0050 RCX: 00007fc3a439f5a9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007fc3a43fa580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc343969cf R14: 00007fc3a2cf1300 R15: 0000000000022000 team0: Device macvtap1 failed to register rx_handler device veth0_to_bond entered promiscuous mode macvtap1: activation failed IPv6: ADDRCONF(NETDEV_UP): macvtap1: link is not ready team0: Device macvtap1 failed to register rx_handler device veth0_to_bond left promiscuous mode device veth0_to_bond entered promiscuous mode macvtap1: activation failed IPv6: ADDRCONF(NETDEV_UP): macvtap1: link is not ready team0: Device macvtap1 failed to register rx_handler device veth0_to_bond left promiscuous mode device veth0_to_bond entered promiscuous mode macvtap1: activation failed IPv6: ADDRCONF(NETDEV_UP): macvtap1: link is not ready team0: Device macvtap1 failed to register rx_handler device veth0_to_bond left promiscuous mode kauditd_printk_skb: 30 callbacks suppressed audit: type=1804 audit(1665663902.654:106): pid=30415 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir3815634439/syzkaller.2f4jH5/574/file1/bus" dev="loop1" ino=36 res=1 attempt to access beyond end of device loop1: rw=2049, want=92, limit=87 Buffer I/O error on dev loop1, logical block 45, lost async page write attempt to access beyond end of device loop1: rw=2049, want=94, limit=87 Buffer I/O error on dev loop1, logical block 46, lost async page write FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) audit: type=1804 audit(1665663903.944:107): pid=30439 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir3815634439/syzkaller.2f4jH5/575/file1/bus" dev="loop1" ino=38 res=1 attempt to access beyond end of device loop1: rw=2049, want=92, limit=87 FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) Buffer I/O error on dev loop1, logical block 45, lost async page write attempt to access beyond end of device loop1: rw=2049, want=94, limit=87 Buffer I/O error on dev loop1, logical block 46, lost async page write audit: type=1804 audit(1665663904.364:108): pid=30474 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir3815634439/syzkaller.2f4jH5/576/file1/bus" dev="loop1" ino=39 res=1 attempt to access beyond end of device loop1: rw=2049, want=92, limit=87 Buffer I/O error on dev loop1, logical block 45, lost async page write attempt to access beyond end of device loop1: rw=2049, want=94, limit=87 Buffer I/O error on dev loop1, logical block 46, lost async page write audit: type=1804 audit(1665663905.524:109): pid=30491 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir3815634439/syzkaller.2f4jH5/577/file1/bus" dev="loop1" ino=40 res=1 attempt to access beyond end of device loop1: rw=2049, want=92, limit=87 Buffer I/O error on dev loop1, logical block 45, lost async page write attempt to access beyond end of device loop1: rw=2049, want=94, limit=87 Buffer I/O error on dev loop1, logical block 46, lost async page write FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop3): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop5): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) bond11 (uninitialized): Released all slaves FAT-fs (loop3): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) nla_parse: 2 callbacks suppressed netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1665663908.674:110): pid=30619 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir58705802/syzkaller.DZC21Z/615/file1/bus" dev="loop5" ino=51 res=1 attempt to access beyond end of device loop5: rw=2049, want=92, limit=87 Buffer I/O error on dev loop5, logical block 45, lost async page write attempt to access beyond end of device bond11 (uninitialized): Released all slaves netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. loop5: rw=2049, want=94, limit=87 Buffer I/O error on dev loop5, logical block 46, lost async page write FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) bond11 (uninitialized): Released all slaves netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. FAT-fs (loop3): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop2): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) bond1 (uninitialized): Released all slaves bond11 (uninitialized): Released all slaves netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1665663909.324:111): pid=30670 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir58705802/syzkaller.DZC21Z/616/file1/bus" dev="sda1" ino=14098 res=1 bond1 (uninitialized): Released all slaves netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. FAT-fs (loop3): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop3): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) bond1 (uninitialized): Released all slaves netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. audit: type=1804 audit(1665663910.204:112): pid=30741 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir58705802/syzkaller.DZC21Z/617/file1/bus" dev="loop5" ino=55 res=1 attempt to access beyond end of device