====================================================== [ INFO: possible circular locking dependency detected ] 4.9.103-g0cecdf8 #35 Not tainted ------------------------------------------------------- syz-executor5/8145 is trying to acquire lock: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] inet_bind+0x2a6/0x8b0 net/ipv4/af_inet.c:502 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 PM: Basic memory bitmaps created ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360 do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1139 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1242 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] inet_bind+0x2a6/0x8b0 net/ipv4/af_inet.c:502 make_receive_sock net/netfilter/ipvs/ip_vs_sync.c:1555 [inline] start_sync_thread+0x1356/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1887 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:1249 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-executor5/8145: #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: 0 PID: 8145 Comm: syz-executor5 Not tainted 4.9.103-g0cecdf8 #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c09df568 ffffffff81eb34a9 ffffffff855e79f0 ffffffff8559d0e0 ffffffff855e79f0[ 81.439325] binder: 8125:8128 BC_INCREFS_DONE node 1 has no pending increfs request binder: 8125:8128 got transaction to context manager from process owning it binder: 8125:8128 transaction failed 29201/-22, size 0-0 line 3009 binder: BINDER_SET_CONTEXT_MGR already set binder: 8125:8128 ioctl 40046207 0 returned -16 binder: 8125:8156 BC_INCREFS_DONE u0000000000000000 no match binder_alloc: 8125: binder_alloc_buf, no vma binder: 8125:8156 transaction failed 29189/-3, size 0-0 line 3141 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 ffff8801cb6b38e8 ffff8801cb6b3000 ffff8801c09df5b0 ffffffff8142642d 0000000000000001 00000000cb6b3000 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] [] inet_bind+0x2a6/0x8b0 net/ipv4/af_inet.c:502 [] make_receive_sock net/netfilter/ipvs/ip_vs_sync.c:1555 [inline] [] start_sync_thread+0x1356/0x1e80 net/netfilter/ipvs/ip_vs_sync.c:1887 [] 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:1249 [] 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: sync thread started: state = BACKUP, mcast_ifn = veth1_to_bond, syncid = 3, id = 0 PM: Basic memory bitmaps freed netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. IPv6: ADDRCONF(NETDEV_UP): bond_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): bond_slave_1: link is not ready IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. IPv6: ADDRCONF(NETDEV_CHANGE): bond_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bond: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): bond_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bond: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_team: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_team: link becomes ready netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. l2tp_core: tunl 1: fd 19 wrong protocol, got 0, expected 17 l2tp_core: tunl 1: fd 21 wrong protocol, got 0, expected 17 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPVS: Creating netns size=2536 id=15 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 netlink: 180 bytes leftover after parsing attributes in process `syz-executor0'. IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 syz-executor3 (8888) used greatest stack depth: 23600 bytes left IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPv6: ADDRCONF(NETDEV_UP): bond_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): bond_slave_1: link is not ready IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): bond_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bond: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): bond_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bond: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_team: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_team: link becomes ready IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 autofs4:pid:9146:validate_dev_ioctl: invalid path supplied for cmd(0x0100937e) autofs4:pid:9149:validate_dev_ioctl: invalid path supplied for cmd(0x0100937e)