IPVS: set_ctl: invalid protocol: 59 224.0.0.2:20000 lc INFO: task syz-executor6:3183 blocked for more than 120 seconds. Not tainted 4.16.0+ #2 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor6 D24264 3183 4552 0x00000004 Call Trace: context_switch kernel/sched/core.c:2848 [inline] __schedule+0x807/0x1e40 kernel/sched/core.c:3490 schedule+0xef/0x430 kernel/sched/core.c:3549 schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136 kthread_stop+0x183/0x8e0 kernel/kthread.c:530 stop_sync_thread.cold.8+0x277/0x398 net/netfilter/ipvs/ip_vs_sync.c:1996 do_ip_vs_set_ctl+0x36c/0x1d30 net/netfilter/ipvs/ip_vs_ctl.c:2394 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x7d/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1253 tcp_setsockopt+0x93/0xe0 net/ipv4/tcp.c:2888 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3039 __sys_setsockopt+0x1bd/0x390 net/socket.c:1903 SYSC_setsockopt net/socket.c:1914 [inline] SyS_setsockopt+0x34/0x50 net/socket.c:1911 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007faaa5d44c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007faaa5d456d4 RCX: 0000000000455259 RDX: 000000000000048c RSI: 0000000000000000 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000018 R09: 0000000000000000 R10: 0000000020000040 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000521 R14: 00000000006fabb8 R15: 0000000000000000 Showing all locks held in the system: 2 locks held by khungtaskd/877: #0: 00000000be8acca5 (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 00000000be8acca5 (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249 #1: 00000000c43a0e4c (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470 1 lock held by rsyslogd/4383: #0: 00000000209303fc (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1a9/0x1e0 fs/file.c:766 2 locks held by getty/4473: #0: 00000000a15704c0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ba59ed8e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4474: #0: 00000000b16918b4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000bae7d636 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4475: #0: 00000000e72a3c0a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000006b553fda (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4476: #0: 0000000004b2a8d3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000008139a980 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4477: #0: 00000000a0d22507 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000e31372ee (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4478: #0: 0000000043beec23 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000041df0c33 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4479: #0: 00000000b58d1fb3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000dcc075be (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 3 locks held by kworker/1:5/19463: #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 0000000008c22a80 ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 000000006083d62d ((addr_chk_work).work){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 #2: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor6/3183: #0: 000000005e0394d8 (ipvs->sync_mutex){+.+.}, at: do_ip_vs_set_ctl+0x339/0x1d30 net/netfilter/ipvs/ip_vs_ctl.c:2393 2 locks held by syz-executor6/3202: #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 #1: 000000005e0394d8 (ipvs->sync_mutex){+.+.}, at: do_ip_vs_set_ctl+0x562/0x1d30 net/netfilter/ipvs/ip_vs_ctl.c:2388 1 lock held by syz-executor6/3203: #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by ipvs-b:4:0/3186: #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 2 locks held by syz-executor1/3254: #0: 0000000050c0d59b (br_ioctl_mutex){+.+.}, at: sock_ioctl+0x2b5/0x680 net/socket.c:1046 #1: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 1 lock held by syz-executor1/3255: #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x40a/0xc10 net/core/rtnetlink.c:4643 1 lock held by syz-executor1/3256: #0: 0000000050c0d59b (br_ioctl_mutex){+.+.}, at: sock_ioctl+0x2b5/0x680 net/socket.c:1046 1 lock held by syz-executor1/3260: #0: 0000000050c0d59b (br_ioctl_mutex){+.+.}, at: sock_ioctl+0x2b5/0x680 net/socket.c:1046 1 lock held by syz-executor1/3262: #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: 0000000023554b66 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x40a/0xc10 net/core/rtnetlink.c:4643 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 877 Comm: khungtaskd Not tainted 4.16.0+ #2 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+0x1b9/0x29f lib/dump_stack.c:53 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0xc10/0xf60 kernel/hung_task.c:249 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54