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.172-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/9181 is trying to acquire lock: 00000000eba6e48a (&team->lock){+.+.}, at: team_vlan_rx_add_vid+0x38/0x1e0 drivers/net/team/team.c:1896 but task is already holding lock: 000000002497a449 (&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.2/9181: #0: 00000000a5c5aa94 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 00000000a5c5aa94 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x3fe/0xb80 net/core/rtnetlink.c:4775 #1: 000000002497a449 (&team->lock){+.+.}, at: team_add_slave+0x98/0x1fa0 drivers/net/team/team.c:1975 stack backtrace: CPU: 1 PID: 9181 Comm: syz-executor.2 Not tainted 4.19.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:1763 [inline] check_deadlock kernel/locking/lockdep.c:1807 [inline] validate_chain kernel/locking/lockdep.c:2403 [inline] __lock_acquire.cold+0x121/0x57e kernel/locking/lockdep.c:3415 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xd7/0x1260 kernel/locking/mutex.c:1072 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+0x1270/0x15b0 net/core/rtnetlink.c:3170 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 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:00007f6d5b529188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffcc18471ef R14: 00007f6d5b529300 R15: 0000000000022000 team0: Device macvtap1 failed to register rx_handler netlink: 'syz-executor.5': attribute type 10 has an invalid length. team0: Cannot enslave team device to itself netlink: 'syz-executor.5': attribute type 10 has an invalid length. batman_adv: batadv0: Adding interface: team0 batman_adv: batadv0: The MTU of interface team0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Interface activated: team0 audit: type=1804 audit(1612106438.436:7103): pid=9199 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir360272501/syzkaller.rbIf8r/1097/bus" dev="sda1" ino=16422 res=1 audit: type=1804 audit(1612106438.446:7104): pid=9199 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir360272501/syzkaller.rbIf8r/1097/bus" dev="sda1" ino=16422 res=1 kworker/u4:1 (9215) used greatest stack depth: 128 bytes left audit: type=1804 audit(1612106438.826:7105): pid=9236 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir295215215/syzkaller.wi8slS/1107/bus" dev="sda1" ino=16226 res=1 audit: type=1804 audit(1612106438.836:7106): pid=9236 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir295215215/syzkaller.wi8slS/1107/bus" dev="sda1" ino=16226 res=1 audit: type=1804 audit(1612106438.856:7107): pid=9236 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir295215215/syzkaller.wi8slS/1107/bus" dev="sda1" ino=16226 res=1 audit: type=1804 audit(1612106438.946:7108): pid=9247 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir360272501/syzkaller.rbIf8r/1098/bus" dev="sda1" ino=16182 res=1 audit: type=1804 audit(1612106438.956:7109): pid=9248 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="bus" dev="sda1" ino=16164 res=1 audit: type=1804 audit(1612106438.966:7110): pid=9248 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="bus" dev="sda1" ino=16164 res=1 IPVS: ftp: loaded support on port[0] = 21 netlink: 'syz-executor.5': attribute type 10 has an invalid length. batman_adv: batadv0: Interface deactivated: team0 batman_adv: batadv0: Removing interface: team0 team0: Cannot enslave team device to itself netlink: 'syz-executor.5': attribute type 10 has an invalid length. IPVS: ftp: loaded support on port[0] = 21 batman_adv: batadv0: Adding interface: team0 batman_adv: batadv0: The MTU of interface team0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Interface activated: team0 IPVS: ftp: loaded support on port[0] = 21 Started in network mode Own node identity 9, cluster identity 4711 32-bit node address hash set to 9 IPVS: ftp: loaded support on port[0] = 21 Started in network mode Own node identity 9, cluster identity 4711 32-bit node address hash set to 9 kauditd_printk_skb: 8 callbacks suppressed audit: type=1804 audit(1612106442.446:7119): pid=9407 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="bus" dev="sda1" ino=16744 res=1 IPVS: ftp: loaded support on port[0] = 21 audit: type=1804 audit(1612106442.486:7120): pid=9407 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="bus" dev="sda1" ino=16744 res=1 audit: type=1804 audit(1612106442.506:7121): pid=9407 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="bus" dev="sda1" ino=16744 res=1 IPVS: ftp: loaded support on port[0] = 21 audit: type=1800 audit(1612106442.886:7122): pid=9448 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16742 res=0 audit: type=1804 audit(1612106442.896:7123): pid=9448 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir297613945/syzkaller.7dyRQ6/772/file0" dev="sda1" ino=16742 res=1 IPVS: ftp: loaded support on port[0] = 21 Left network mode ptrace attach of "/root/syz-executor.2"[14597] was attempted by "/root/syz-executor.2"[9536] ptrace attach of "/root/syz-executor.2"[14597] was attempted by "/root/syz-executor.2"[9538] ptrace attach of "/root/syz-executor.2"[14597] was attempted by "/root/syz-executor.2"[9569] device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready device wlan1 left promiscuous mode device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready device wlan1 left promiscuous mode device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready device wlan1 left promiscuous mode device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready device wlan1 left promiscuous mode device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready audit: type=1800 audit(1612106447.726:7124): pid=9733 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16742 res=0 audit: type=1800 audit(1612106447.786:7125): pid=9733 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16742 res=0