IPVS: sync thread started: state = BACKUP, mcast_ifn = lo, syncid = 3, id = 0 IPVS: sync thread started: state = BACKUP, mcast_ifn = lo, syncid = 3, id = 0 IPVS: sync thread started: state = BACKUP, mcast_ifn = lo, syncid = 3, id = 0 ============================================= [ INFO: possible recursive locking detected ] 4.9.95-g13cc540 #2 Not tainted --------------------------------------------- syz-executor0/4061 is trying to acquire lock: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 but task is already holding lock: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rtnl_mutex); lock(rtnl_mutex); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor0/4061: #0: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 #1: (ipvs->sync_mutex){+.+.+.}, at: [] do_ip_vs_set_ctl+0x90d/0xbd0 net/netfilter/ipvs/ip_vs_ctl.c:2397 stack backtrace: CPU: 1 PID: 4061 Comm: syz-executor0 Not tainted 4.9.95-g13cc540 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d78c7480 ffffffff81eb0ba9 ffffffff8539d290 ffffffff8539d290 ffffffff8539d290 ffff8801b4a888e8 3b9ef1081871f670 ffff8801d78c7640 ffffffff814259ef ffffffff84c98ca0 ffffffff84feeb80 ffffffff84c98ca4 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_deadlock_bug kernel/locking/lockdep.c:1727 [inline] [] check_deadlock kernel/locking/lockdep.c:1771 [inline] [] validate_chain kernel/locking/lockdep.c:2249 [inline] [] __lock_acquire.cold.59+0x166/0x5f8 kernel/locking/lockdep.c:3345 [] 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 [] ip_mc_drop_socket+0x8c/0x230 net/ipv4/igmp.c:2635 [] inet_release+0x5b/0x1d0 net/ipv4/af_inet.c:420 [] sock_release+0x96/0x1c0 net/socket.c:599 [] start_sync_thread+0xa0e/0x1ea0 net/netfilter/ipvs/ip_vs_sync.c:1926 [] do_ip_vs_set_ctl+0x91f/0xbd0 net/netfilter/ipvs/ip_vs_ctl.c:2398 [] 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 [] 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 IPVS: stopping backup sync thread 4064 ... IPVS: stopping backup sync thread 4065 ... IPVS: stopping backup sync thread 4066 ... IPVS: stopping backup sync thread 4074 ... IPVS: stopping backup sync thread 4072 ...