IPVS: Creating netns size=2536 id=18 device lo entered promiscuous mode ====================================================== [ INFO: possible circular locking dependency detected ] 4.9.109-g7cecc75 #2 Not tainted ------------------------------------------------------- syz-executor7/8041 is trying to acquire lock: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] set_mcast_if net/netfilter/ipvs/ip_vs_sync.c:1370 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] make_send_sock net/netfilter/ipvs/ip_vs_sync.c:1490 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] start_sync_thread+0x88b/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1885 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] set_mcast_if net/netfilter/ipvs/ip_vs_sync.c:1370 [inline] make_send_sock net/netfilter/ipvs/ip_vs_sync.c:1490 [inline] start_sync_thread+0x88b/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1885 do_ip_vs_set_ctl+0x90f/0xbb0 net/netfilter/ipvs/ip_vs_ctl.c:2396 nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 ip_setsockopt+0x9a/0xb0 net/ipv4/ip_sockglue.c:1247 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 *** 2 locks held by syz-executor7/8041: #0: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 #1: (ipvs->sync_mutex){+.+.+.}, at: [] start_sync_thread+0x118/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1779 stack backtrace: CPU: 1 PID: 8041 Comm: syz-executor7 Not tainted 4.9.109-g7cecc75 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff88017e7a75a8 ffffffff81eb3e29 ffffffff855e7650 ffffffff8559cef0 ffffffff855e7650 ffff88017099e8e8 ffff88017099e000 ffff88017e7a75f0 ffffffff814262d4 0000000000000001 000000007099e000 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] [] set_mcast_if net/netfilter/ipvs/ip_vs_sync.c:1370 [inline] [] make_send_sock net/netfilter/ipvs/ip_vs_sync.c:1490 [inline] [] start_sync_thread+0x88b/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1885 [] do_ip_vs_set_ctl+0x90f/0xbb0 net/netfilter/ipvs/ip_vs_ctl.c:2396 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [] ip_setsockopt+0x9a/0xb0 net/ipv4/ip_sockglue.c:1247 [] 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: You probably need to specify IP address on multicast interface. IPVS: Creating netns size=2536 id=19 IPVS: sync thread started: state = MASTER, mcast_ifn = lo, syncid = 0, id = 0 device lo entered promiscuous mode IPVS: Creating netns size=2536 id=20 binder: 8091:8094 unknown command 1074029313 binder: 8091:8094 ioctl c0306201 20007000 returned -22 binder: 8091:8094 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8091:8094 unknown command 227 binder: 8091:8094 ioctl c0306201 20000180 returned -22 binder: 8091:8110 unknown command 1074029313 binder: 8091:8110 ioctl c0306201 20007000 returned -22 binder: 8091:8094 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 IPVS: Creating netns size=2536 id=21 binder: 8091:8094 unknown command 227 binder: 8091:8094 ioctl c0306201 20000180 returned -22 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 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8503:8507 unknown command 1074029313 binder: 8503:8507 ioctl c0306201 20007000 returned -22 binder: 8503:8507 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8503:8507 unknown command 227 binder: 8503:8507 ioctl c0306201 20000180 returned -22 pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads binder: 8529:8536 unknown command 1074029313 binder: 8530:8539 unknown command 1074029313 binder: 8530:8539 ioctl c0306201 20007000 returned -22 binder: 8530:8539 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8530:8539 unknown command 227 binder: 8530:8539 ioctl c0306201 20000180 returned -22 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8529:8536 ioctl c0306201 20007000 returned -22 binder: 8566:8567 unknown command 1074029313 binder: 8529:8536 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8529:8536 unknown command 227 binder: 8529:8536 ioctl c0306201 20000180 returned -22 binder: 8566:8567 ioctl c0306201 20007000 returned -22 binder: 8566:8567 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8566:8567 unknown command 227 binder: 8566:8567 ioctl c0306201 20000180 returned -22 IPVS: Creating netns size=2536 id=22 : renamed from tunl0 IPVS: Creating netns size=2536 id=23 binder: 8593:8598 unknown command 1074029313 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8599:8605 unknown command 1074029313 binder: 8599:8605 ioctl c0306201 20007000 returned -22 binder: 8599:8605 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8599:8605 unknown command 227 binder: 8599:8605 ioctl c0306201 20000180 returned -22 binder: 8593:8598 ioctl c0306201 20007000 returned -22 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. IPVS: stopping master sync thread 8082 ... binder: 8593:8598 BC_REQUEST_DEATH_NOTIFICATION invalid ref -700710912 binder: 8593:8598 unknown command 227 binder: 8593:8598 ioctl c0306201 20000180 returned -22 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8653:8660 unknown command 1074029313 binder: 8653:8660 ioctl c0306201 20007000 returned -22 binder: 8673:8677 unknown command 1074029313 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8673:8677 ioctl c0306201 20007000 returned -22 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8706:8713 unknown command 1074029313 binder: 8707:8711 unknown command 1074029313 binder: 8707:8711 ioctl c0306201 20007000 returned -22 binder: 8706:8713 ioctl c0306201 20007000 returned -22 IPVS: Creating netns size=2536 id=24 : renamed from tunl0 binder: 8735:8739 unknown command 1074029313 IPVS: Creating netns size=2536 id=25 binder: 8735:8739 ioctl c0306201 20007000 returned -22 binder: 8779:8781 unknown command 1074029313 binder: 8779:8781 ioctl c0306201 20007000 returned -22 IPVS: Creating netns size=2536 id=26 IPVS: Creating netns size=2536 id=27 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. binder: 8821:8825 unknown command 1074029313 binder: 8821:8825 ioctl c0306201 20007000 returned -22 binder: 8854:8856 unknown command 1074029313 binder: 8854:8856 ioctl c0306201 20007000 returned -22 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters.