====================================================== WARNING: possible circular locking dependency detected 4.14.267-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/13639 is trying to acquire lock: (&vlan_netdev_addr_lock_key#2/2){+...}, at: [] netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] (&vlan_netdev_addr_lock_key#2/2){+...}, at: [] dev_uc_sync_multiple+0x10b/0x1c0 net/core/dev_addr_lists.c:574 but task is already holding lock: (&dev_addr_list_lock_key#2/1){+...}, at: [] netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] (&dev_addr_list_lock_key#2/1){+...}, at: [] dev_mc_sync+0x10b/0x1c0 net/core/dev_addr_lists.c:765 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&dev_addr_list_lock_key#2/1){+...}: _raw_spin_lock_nested+0x30/0x40 kernel/locking/spinlock.c:362 netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] dev_mc_sync+0x10b/0x1c0 net/core/dev_addr_lists.c:765 vlan_dev_set_rx_mode+0x38/0x80 net/8021q/vlan_dev.c:486 __dev_set_rx_mode+0x191/0x2a0 net/core/dev.c:6724 dev_set_rx_mode net/core/dev.c:6730 [inline] __dev_open+0x223/0x310 net/core/dev.c:1375 __dev_change_flags+0x43f/0x540 net/core/dev.c:6802 rtnl_configure_link+0xd9/0x200 net/core/rtnetlink.c:2421 rtnl_newlink+0xf98/0x1830 net/core/rtnetlink.c:2750 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446 netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #0 (&vlan_netdev_addr_lock_key#2/2){+...}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 _raw_spin_lock_nested+0x30/0x40 kernel/locking/spinlock.c:362 netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] dev_uc_sync_multiple+0x10b/0x1c0 net/core/dev_addr_lists.c:574 team_set_rx_mode+0xb8/0x1e0 drivers/net/team/team.c:1781 __dev_set_rx_mode+0x191/0x2a0 net/core/dev.c:6724 dev_mc_sync+0x17a/0x1c0 net/core/dev_addr_lists.c:768 vlan_dev_set_rx_mode+0x38/0x80 net/8021q/vlan_dev.c:486 __dev_set_rx_mode+0x191/0x2a0 net/core/dev.c:6724 dev_set_rx_mode net/core/dev.c:6730 [inline] __dev_open+0x223/0x310 net/core/dev.c:1375 __dev_change_flags+0x43f/0x540 net/core/dev.c:6802 rtnl_configure_link+0xd9/0x200 net/core/rtnetlink.c:2421 rtnl_newlink+0xf98/0x1830 net/core/rtnetlink.c:2750 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446 netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&dev_addr_list_lock_key#2/1); lock(&vlan_netdev_addr_lock_key#2/2); lock(&dev_addr_list_lock_key#2/1); lock(&vlan_netdev_addr_lock_key#2/2); *** DEADLOCK *** 4 locks held by syz-executor.0/13639: #0: (rtnl_mutex){+.+.}, at: [] rtnl_lock net/core/rtnetlink.c:72 [inline] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 net/core/rtnetlink.c:4317 #1: (&vlan_netdev_addr_lock_key#3/4){+...}, at: [] spin_lock_bh include/linux/spinlock.h:322 [inline] #1: (&vlan_netdev_addr_lock_key#3/4){+...}, at: [] netif_addr_lock_bh include/linux/netdevice.h:3717 [inline] #1: (&vlan_netdev_addr_lock_key#3/4){+...}, at: [] dev_set_rx_mode net/core/dev.c:6729 [inline] #1: (&vlan_netdev_addr_lock_key#3/4){+...}, at: [] __dev_open+0x21b/0x310 net/core/dev.c:1375 #2: (&dev_addr_list_lock_key#2/1){+...}, at: [] netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] #2: (&dev_addr_list_lock_key#2/1){+...}, at: [] dev_mc_sync+0x10b/0x1c0 net/core/dev_addr_lists.c:765 #3: (rcu_read_lock){....}, at: [] team_set_rx_mode+0x0/0x1e0 drivers/net/team/team.c:514 stack backtrace: CPU: 0 PID: 13639 Comm: syz-executor.0 Not tainted 4.14.267-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 _raw_spin_lock_nested+0x30/0x40 kernel/locking/spinlock.c:362 netif_addr_lock_nested include/linux/netdevice.h:3712 [inline] dev_uc_sync_multiple+0x10b/0x1c0 net/core/dev_addr_lists.c:574 team_set_rx_mode+0xb8/0x1e0 drivers/net/team/team.c:1781 __dev_set_rx_mode+0x191/0x2a0 net/core/dev.c:6724 dev_mc_sync+0x17a/0x1c0 net/core/dev_addr_lists.c:768 vlan_dev_set_rx_mode+0x38/0x80 net/8021q/vlan_dev.c:486 __dev_set_rx_mode+0x191/0x2a0 net/core/dev.c:6724 dev_set_rx_mode net/core/dev.c:6730 [inline] __dev_open+0x223/0x310 net/core/dev.c:1375 __dev_change_flags+0x43f/0x540 net/core/dev.c:6802 rtnl_configure_link+0xd9/0x200 net/core/rtnetlink.c:2421 rtnl_newlink+0xf98/0x1830 net/core/rtnetlink.c:2750 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2446 netlink_unicast_kernel net/netlink/af_netlink.c:1294 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1320 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f4c164a3059 RSP: 002b:00007f4c14df7168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4c165b6030 RCX: 00007f4c164a3059 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007f4c164fd08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8c36425f R14: 00007f4c14df7300 R15: 0000000000022000 device vlan3 entered promiscuous mode device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode device team_slave_1 entered promiscuous mode device vlan2 entered promiscuous mode device bond0 entered promiscuous mode device bond_slave_0 entered promiscuous mode device bond_slave_1 entered promiscuous mode input: syz0 as /devices/virtual/input/input6 input: syz0 as /devices/virtual/input/input7 input: syz0 as /devices/virtual/input/input8 input: syz0 as /devices/virtual/input/input9 input: syz0 as /devices/virtual/input/input10 input: syz0 as /devices/virtual/input/input11 input: syz0 as /devices/virtual/input/input12 input: syz0 as /devices/virtual/input/input13 input: syz0 as /devices/virtual/input/input14 input: syz0 as /devices/virtual/input/input15 input: syz0 as /devices/virtual/input/input16 input: syz0 as /devices/virtual/input/input17 input: syz0 as /devices/virtual/input/input18 input: syz0 as /devices/virtual/input/input19 input: syz0 as /devices/virtual/input/input20 input: syz0 as /devices/virtual/input/input21 input: syz0 as /devices/virtual/input/input22 input: syz0 as /devices/virtual/input/input23 input: syz0 as /devices/virtual/input/input24 RDS: rds_bind could not find a transport for 10.1.1.2, load rds_tcp or rds_rdma? EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue RDS: rds_bind could not find a transport for 10.1.1.2, load rds_tcp or rds_rdma? netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. RDS: rds_bind could not find a transport for 10.1.1.2, load rds_tcp or rds_rdma? netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. RDS: rds_bind could not find a transport for 10.1.1.2, load rds_tcp or rds_rdma? netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.3'. EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue