Hello,
syzbot found the following issue on:
HEAD commit: d7e78d08 Linux 4.14.195
git tree: linux-4.14.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=147573de900000
kernel config:
https://syzkaller.appspot.com/x/.config?x=6608b656f49b4e8c
dashboard link:
https://syzkaller.appspot.com/bug?extid=7760715cf8211da10f42
compiler: gcc (GCC) 10.1.0-syz 20200507
Unfortunately, I don't have any reproducer for this issue yet.
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+776071...@syzkaller.appspotmail.com
@��� : renamed from team0
IPv6: ADDRCONF(NETDEV_UP): @��� : link is not ready
8021q: adding VLAN 0 to HW filter on device @���
ip_tables: iptables: counters copy to user failed while replacing table
============================================
WARNING: possible recursive locking detected
4.14.195-syzkaller #0 Not tainted
--------------------------------------------
syz-executor.4/2298 is trying to acquire lock:
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8514fc1b>] netif_addr_lock_nested include/linux/netdevice.h:3699 [inline]
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8514fc1b>] dev_uc_sync_multiple+0x10b/0x1c0 net/core/dev_addr_lists.c:574
but task is already holding lock:
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] spin_lock_bh include/linux/spinlock.h:322 [inline]
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] netif_addr_lock_bh include/linux/netdevice.h:3704 [inline]
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] dev_set_rx_mode net/core/dev.c:6720 [inline]
(&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] __dev_open+0x21b/0x310 net/core/dev.c:1375
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(&vlan_netdev_addr_lock_key/1);
lock(&vlan_netdev_addr_lock_key/1);
*** DEADLOCK ***
May be due to missing lock nesting notation
4 locks held by syz-executor.4/2298:
#0: (rtnl_mutex){+.+.}, at: [<ffffffff85176d2d>] rtnl_lock net/core/rtnetlink.c:72 [inline]
#0: (rtnl_mutex){+.+.}, at: [<ffffffff85176d2d>] rtnetlink_rcv_msg+0x31d/0xb10 net/core/rtnetlink.c:4311
#1: (&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] spin_lock_bh include/linux/spinlock.h:322 [inline]
#1: (&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] netif_addr_lock_bh include/linux/netdevice.h:3704 [inline]
#1: (&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] dev_set_rx_mode net/core/dev.c:6720 [inline]
#1: (&vlan_netdev_addr_lock_key/1){+...}, at: [<ffffffff8513e92b>] __dev_open+0x21b/0x310 net/core/dev.c:1375
#2: (&dev_addr_list_lock_key#2/1){+...}, at: [<ffffffff8514f70b>] netif_addr_lock_nested include/linux/netdevice.h:3699 [inline]
#2: (&dev_addr_list_lock_key#2/1){+...}, at: [<ffffffff8514f70b>] dev_mc_sync+0x10b/0x1c0 net/core/dev_addr_lists.c:765
#3: (rcu_read_lock){....}, at: [<ffffffff83e45790>] team_set_rx_mode+0x0/0x1e0 drivers/net/team/team.c:514
stack backtrace:
CPU: 0 PID: 2298 Comm: syz-executor.4 Not tainted 4.14.195-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/0x283 lib/dump_stack.c:58
print_deadlock_bug kernel/locking/lockdep.c:1800 [inline]
check_deadlock kernel/locking/lockdep.c:1847 [inline]
validate_chain kernel/locking/lockdep.c:2448 [inline]
__lock_acquire.cold+0x180/0x97c 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:3699 [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:6715
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:6715
dev_set_rx_mode net/core/dev.c:6721 [inline]
__dev_open+0x223/0x310 net/core/dev.c:1375
__dev_change_flags+0x43f/0x540 net/core/dev.c:6793
dev_change_flags+0x7e/0x130 net/core/dev.c:6859
vlan_device_event+0x1261/0x1ad0 net/8021q/vlan.c:453
notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93
call_netdevice_notifiers_info net/core/dev.c:1667 [inline]
call_netdevice_notifiers net/core/dev.c:1683 [inline]
__dev_notify_flags+0xdf/0x260 net/core/dev.c:6831
dev_change_flags+0xe6/0x130 net/core/dev.c:6864
do_setlink+0x83f/0x2bf0 net/core/rtnetlink.c:2092
rtnl_newlink+0x1267/0x1830 net/core/rtnetlink.c:2660
rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
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:0x45d5b9
RSP: 002b:00007fa61d600c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002ccc0 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000005
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007fffd49ad10f R14: 00007fa61d6019c0 R15: 000000000118cf4c
IPv6: ADDRCONF(NETDEV_UP): team0.2: link is not ready
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'.
ip_tables: iptables: counters copy to user failed while replacing table
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.5'.
IPv6: ADDRCONF(NETDEV_UP): @��� : link is not ready
8021q: adding VLAN 0 to HW filter on device @���
IPv6: ADDRCONF(NETDEV_UP): team0.2: link is not ready
device syz_tun left promiscuous mode
bridge3: port 1(syz_tun) entered disabled state
batman_adv: batadv0: Removing interface: veth19
@��� : Port device vlan0 removed
audit: type=1800 audit(1598941757.777:333): pid=2387 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed" comm="syz-executor.5" name="SYSV00000000" dev="hugetlbfs" ino=65538 res=0
IPVS: set_ctl: invalid protocol: 92
10.1.1.0:20003
sd 0:0:1:0: [sg0] tag#6194 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
sd 0:0:1:0: [sg0] tag#6194 CDB: opcode=0xab, sa=0x8
sd 0:0:1:0: [sg0] tag#6194 CDB[00]: ab 68 a2 75 fb 6e 98 4c a6 9f 39 c7 6d fb bf 9f
sd 0:0:1:0: [sg0] tag#6194 CDB[10]: f4 24 e9 7d a8 7f c2 f3 87 05 42 e6 27 a3 39 d2
sd 0:0:1:0: [sg0] tag#6194 CDB[20]: dc
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
batman_adv: batadv0: Adding interface: veth3
batman_adv: batadv0: The MTU of interface veth3 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: Not using interface veth3 (retrying later): interface not active
ip_tables: iptables: counters copy to user failed while replacing table
batman_adv: batadv0: Removing interface: veth3
ip_tables: iptables: counters copy to user failed while replacing table
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
batman_adv: batadv0: Adding interface: veth3
batman_adv: batadv0: The MTU of interface veth3 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: Not using interface veth3 (retrying later): interface not active
batman_adv: batadv0: Removing interface: veth3
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
block nbd2: Receive control failed (result -107)
block nbd2: shutting down sockets
batman_adv: batadv0: Adding interface: veth3
batman_adv: batadv0: The MTU of interface veth3 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.
tmpfs: Bad mount option �uge
batman_adv: batadv0: Not using interface veth3 (retrying later): interface not active
batman_adv: batadv0: Removing interface: veth3
tmpfs: Bad mount option �uge
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.3'.
ptrace attach of "/root/syz-executor.0"[2605] was attempted by "/root/syz-executor.0"[2610]
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'.
HTB: quantum of class FFFF0004 is big. Consider r2q change.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'.
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
overlayfs: unrecognized mount option "worfdir=./file1" or missing value
overlayfs: unrecognized mount option "worfdir=./file1" or missing value
audit: type=1326 audit(1598941761.717:334): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=2703 comm="syz-executor.4" exe="/root/syz-executor.4" sig=9 arch=c000003e syscall=228 compat=0 ip=0x4603fa code=0x0
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
IPVS: ftp: loaded support on port[0] = 21
audit: type=1326 audit(1598941762.077:335): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=2729 comm="syz-executor.4" exe="/root/syz-executor.4" sig=9 arch=c000003e syscall=228 compat=0 ip=0x4603fa code=0x0
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
net_ratelimit: 14 callbacks suppressed
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pid=2845 comm=syz-executor.3
IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready
chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19
caif:caif_disconnect_client(): nothing to disconnect
chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT
chnl_net:chnl_net_open(): state disconnected
A link change request failed with some changes committed already. Interface caif0 may have been left with an inconsistent configuration, please check.
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pid=2845 comm=syz-executor.3
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready
chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19
caif:caif_disconnect_client(): nothing to disconnect
ip_tables: iptables: counters copy to user failed while replacing table
chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT
chnl_net:chnl_net_open(): state disconnected
A link change request failed with some changes committed already. Interface caif0 may have been left with an inconsistent configuration, please check.
hub 9-0:1.0: USB hub found
hub 9-0:1.0: 8 ports detected
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
batman_adv: batadv0: Removing interface: batadv_slave_0
batman_adv: batadv0: Removing interface: batadv_slave_1
device bridge_slave_1 left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
device bridge_slave_0 left promiscuous mode
bridge0: port 1(bridge_slave_0) entered disabled state
device hsr_slave_1 left promiscuous mode
device hsr_slave_0 left promiscuous mode
team0 (unregistering): Port device team_slave_1 removed
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): Releasing backup interface bond_slave_1
bond0 (unregistering): Releasing backup interface bond_slave_0
bond0 (unregistering): Released all slaves
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.