IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready ====================================================== [ INFO: possible circular locking dependency detected ] 4.9.110-g00a0bcb #4 Not tainted ------------------------------------------------------- syz-executor3/7778 is trying to acquire lock: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] do_ip_setsockopt.isra.13+0x12a/0x2b10 net/ipv4/ip_sockglue.c:636 but task is already holding lock: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 __mutex_lock_common kernel/locking/mutex.c:521 [inline] mutex_lock_nested+0xc0/0x870 kernel/locking/mutex.c:621 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 mrtsock_destruct+0x3b/0x1e0 net/ipv4/ipmr.c:1231 ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360 do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1137 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:833 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 SYSC_setsockopt net/socket.c:1772 [inline] SyS_setsockopt+0x166/0x260 net/socket.c:1751 do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 entry_SYSCALL_64_after_swapgs+0x5d/0xdb check_prev_add kernel/locking/lockdep.c:1828 [inline] check_prevs_add kernel/locking/lockdep.c:1938 [inline] validate_chain kernel/locking/lockdep.c:2265 [inline] __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345 lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 lock_sock_nested+0xc6/0x120 net/core/sock.c:2511 lock_sock include/net/sock.h:1404 [inline] do_ip_setsockopt.isra.13+0x12a/0x2b10 net/ipv4/ip_sockglue.c:636 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 tcp_setsockopt+0x88/0xe0 net/ipv4/tcp.c:2758 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 SYSC_setsockopt net/socket.c:1772 [inline] SyS_setsockopt+0x166/0x260 net/socket.c:1751 do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 entry_SYSCALL_64_after_swapgs+0x5d/0xdb other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rtnl_mutex); lock(sk_lock-AF_INET); lock(rtnl_mutex); lock(sk_lock-AF_INET); *** DEADLOCK *** 1 lock held by syz-executor3/7778: #0: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 stack backtrace: CPU: 1 PID: 7778 Comm: syz-executor3 Not tainted 4.9.110-g00a0bcb #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff88019e3ff748 ffffffff81eb2329 ffffffff855e79b0 ffffffff8559cef0 ffffffff855e79b0 ffff8801cb57a0e8 ffff8801cb579800 ffff88019e3ff790 ffffffff814262d4 0000000000000001 00000000cb579800 0000000000000001 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_circular_bug.cold.51+0x1bd/0x27d kernel/locking/lockdep.c:1202 [] check_prev_add kernel/locking/lockdep.c:1828 [inline] [] check_prevs_add kernel/locking/lockdep.c:1938 [inline] [] validate_chain kernel/locking/lockdep.c:2265 [inline] [] __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345 [] lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 [] lock_sock_nested+0xc6/0x120 net/core/sock.c:2511 [] lock_sock include/net/sock.h:1404 [inline] [] do_ip_setsockopt.isra.13+0x12a/0x2b10 net/ipv4/ip_sockglue.c:636 [] ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 [] tcp_setsockopt+0x88/0xe0 net/ipv4/tcp.c:2758 [] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 [] SYSC_setsockopt net/socket.c:1772 [inline] [] SyS_setsockopt+0x166/0x260 net/socket.c:1751 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb IPVS: length: 193 != 8 IPv6: Can't replace route, no match found FAT-fs (loop1): bogus number of reserved sectors FAT-fs (loop1): Can't find a valid FAT filesystem IPv6: Can't replace route, no match found IPVS: Creating netns size=2536 id=15 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7868 sclass=netlink_route_socket pig=7840 comm=syz-executor4 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7868 sclass=netlink_route_socket pig=7862 comm=syz-executor4 FAT-fs (loop1): bogus number of reserved sectors FAT-fs (loop1): Can't find a valid FAT filesystem IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready syz-executor1 (7796) used greatest stack depth: 22560 bytes left IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_team: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPVS: length: 193 != 8 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7868 sclass=netlink_route_socket pig=8258 comm=syz-executor4 IPVS: Creating netns size=2536 id=16 IPVS: Creating netns size=2536 id=17 IPVS: length: 193 != 8 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=8291 sclass=netlink_route_socket pig=8274 comm=syz-executor2 IPVS: length: 193 != 8 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=8291 sclass=netlink_route_socket pig=8367 comm=syz-executor2 syz-executor1 uses obsolete (PF_INET,SOCK_PACKET) FAT-fs (loop4): Unrecognized mount option "^os1xfloppy" or missing value FAT-fs (loop4): Unrecognized mount option "age=861" or missing value FAT-fs (loop4): Unrecognized mount option "^os1xfloppy" or missing value FAT-fs (loop4): Unrecognized mount option "age=861" or missing value EXT4-fs (loop0): VFS: Can't find ext4 filesystem EXT4-fs (loop0): VFS: Can't find ext4 filesystem EXT4-fs (loop0): VFS: Can't find ext4 filesystem binder: 8599:8601 unknown command 0 binder: 8599:8601 ioctl c0306201 20000980 returned -22 FAT-fs (loop7): bogus number of reserved sectors FAT-fs (loop7): Can't find a valid FAT filesystem binder: 8599:8621 unknown command 0 binder: 8599:8621 ioctl c0306201 20000980 returned -22 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=4124 sclass=netlink_route_socket pig=8671 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=4124 sclass=netlink_route_socket pig=8673 comm=syz-executor7 EXT4-fs (loop0): VFS: Can't find ext4 filesystem device lo entered promiscuous mode IPVS: Creating netns size=2536 id=18 device lo left promiscuous mode device lo entered promiscuous mode device lo left promiscuous mode IPVS: Creating netns size=2536 id=19 EXT4-fs (loop0): VFS: Can't find ext4 filesystem tmpfs: No value for mount option '& õ A' EXT4-fs (loop0): VFS: Can't find ext4 filesystem tmpfs: No value for mount option '& õ A' EXT4-fs (loop0): VFS: Can't find ext4 filesystem IPVS: set_ctl: invalid protocol: 0 172.20.20.187:0 IPVS: set_ctl: invalid protocol: 0 172.20.20.187:0 EXT4-fs (loop0): VFS: Can't find ext4 filesystem IPVS: Creating netns size=2536 id=20 EXT4-fs (loop0): VFS: Can't find ext4 filesystem IPVS: Creating netns size=2536 id=21 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=12337 sclass=netlink_route_socket pig=8843 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=12337 sclass=netlink_route_socket pig=8861 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=13873 sclass=netlink_route_socket pig=8861 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=12914 sclass=netlink_route_socket pig=8861 comm=syz-executor2 EXT4-fs (loop0): VFS: Can't find ext4 filesystem EXT4-fs (loop0): VFS: Can't find ext4 filesystem IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_team: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready