INFO: task kworker/1:1:6608 blocked for more than 430 seconds. Tainted: G L syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:1 state:D stack:0 pid:6608 tgid:6608 ppid:2 task_flags:0x4208060 flags:0x00000000 Workqueue: wg-kex-wg0 wg_packet_handshake_receive_worker Call Trace: [] context_switch kernel/sched/core.c:5256 [inline] [] __schedule+0xf14/0x4220 kernel/sched/core.c:6863 [] __schedule_loop kernel/sched/core.c:6945 [inline] [] schedule+0xb4/0x334 kernel/sched/core.c:6960 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:7017 [] rwsem_down_read_slowpath+0x4ca/0x954 kernel/locking/rwsem.c:1086 [] __down_read_common kernel/locking/rwsem.c:1261 [inline] [] __down_read kernel/locking/rwsem.c:1274 [inline] [] down_read+0xe0/0x454 kernel/locking/rwsem.c:1539 [] wg_noise_handshake_consume_initiation+0x4bc/0x8f8 drivers/net/wireguard/noise.c:632 [] wg_receive_handshake_packet+0x692/0xa70 drivers/net/wireguard/receive.c:144 [] wg_packet_handshake_receive_worker+0x116/0x30c drivers/net/wireguard/receive.c:213 [] process_one_work+0x930/0x1e14 kernel/workqueue.c:3257 [] process_scheduled_works kernel/workqueue.c:3340 [inline] [] worker_thread+0x540/0xcbc kernel/workqueue.c:3421 [] kthread+0x37c/0x778 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xbbc arch/riscv/kernel/process.c:228 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:363 Showing all locks held in the system: 1 lock held by khungtaskd/33: #0: ffffffff885ec0a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a8 kernel/locking/lockdep.c:6771 1 lock held by klogd/3016: 1 lock held by dhcpcd/3060: #0: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 2 locks held by getty/3182: #0: ffffaf801d8830a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x48 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3be/0x1324 drivers/tty/n_tty.c:2211 2 locks held by syz-executor/3223: 2 locks held by kworker/0:3/3797: 3 locks held by kworker/1:5/3930: 2 locks held by kworker/0:8/3956: 3 locks held by kworker/u8:7/5437: 2 locks held by kworker/0:1/5558: 2 locks held by kworker/0:2H/6078: #0: ffffffff885ec0a0 (rcu_read_lock){....}-{1:3}, at: local_lock_release include/linux/local_lock_internal.h:56 [inline] #0: ffffffff885ec0a0 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x516/0x1be0 net/core/dev.c:6600 #1: ffffffff885ec0a0 (rcu_read_lock){....}-{1:3}, at: ip_local_deliver+0x1ec/0x55c net/ipv4/ip_input.c:262 3 locks held by kworker/u8:5/6096: #0: ffffaf801f2af148 ((wq_completion)wg-kex-wg0#3){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8002ff7b70 ((work_completion)(&peer->clear_peer_work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffaf8030778d20 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_clear+0x26/0xb8 drivers/net/wireguard/noise.c:90 2 locks held by kworker/0:7/6111: 2 locks held by kworker/0:9/6115: 2 locks held by kworker/0:12/6130: 4 locks held by kworker/0:13/6131: 1 lock held by syz-executor/6135: #0: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 3 locks held by kworker/u8:6/6138: #0: ffffaf8014b2a148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8002307b70 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 5 locks held by kworker/u8:2/6143: 1 lock held by syz-executor/6157: #0: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 2 locks held by kworker/0:15/6178: 4 locks held by kworker/1:1/6608: #0: ffffaf801a40b948 ((wq_completion)wg-kex-wg0#4){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8000e37b70 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __asm__ ("" : "=r"(__ptr) : "0"((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker))))); (typeof((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffaf801f245308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x138/0x8f8 drivers/net/wireguard/noise.c:598 #3: ffffaf8030778d20 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x4bc/0x8f8 drivers/net/wireguard/noise.c:632 4 locks held by kworker/u8:10/6676: #0: ffffaf801f2af148 ((wq_completion)wg-kex-wg0#3){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8000d17b70 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffaf801f245308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xe4/0x5e4 drivers/net/wireguard/noise.c:529 #3: ffffaf8030778d20 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xee/0x5e4 drivers/net/wireguard/noise.c:530 3 locks held by kworker/u8:11/6715: #0: ffffaf8011e89948 ((wq_completion)events_unbound#2){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8000d47b70 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 1 lock held by syz-executor/6723: #0: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 1 lock held by syz-executor/6733: #0: ffffffff89b56ee8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2c net/core/rtnetlink.c:80 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 33 Comm: khungtaskd Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:149 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:155 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x114/0x1ac lib/dump_stack.c:120 [] dump_stack+0x1c/0x28 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x25e/0x3b0 lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x29e/0x460 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:350 [] trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] [] __sys_info lib/sys_info.c:157 [inline] [] sys_info+0x20c/0x254 lib/sys_info.c:165 [] check_hung_uninterruptible_tasks kernel/hung_task.c:346 [inline] [] watchdog+0xb44/0x1184 kernel/hung_task.c:515 [] kthread+0x37c/0x778 kernel/kthread.c:463 [] ret_from_fork_kernel+0x2a/0xbbc arch/riscv/kernel/process.c:228 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:363 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 6078 Comm: kworker/0:2H Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Workqueue: тя 0x0 (kblockd) epc : preempt_count include/asm-generic/preempt.h:11 [inline] epc : should_resched include/asm-generic/preempt.h:77 [inline] epc : __local_bh_enable_ip+0x222/0x588 kernel/softirq.c:457 ra : __local_bh_enable_ip+0x21e/0x588 kernel/softirq.c:455 epc : ffffffff80165826 ra : ffffffff80165822 sp : ffff8f8000006b40 gp : ffffffff89f9af80 tp : ffffaf801afc1a80 t0 : ffff8f8000006ee8 t1 : ffffffff8007a304 t2 : ffffffff802664d8 s0 : ffff8f8000006b90 s1 : 0000000000000102 a0 : 0000000000000000 a1 : ffffffff87ef7658 a2 : 0000000000000003 a3 : 0000000000000001 a4 : 0000000000001000 a5 : 0000000000132f44 a6 : 0000000000000000 a7 : 0000000041b58ab3 s2 : ffffaf801afc1a80 s3 : ffffffff85a70f4c s4 : 0000000000000001 s5 : ffffffff913696a0 s6 : 1ffff5f0035f8351 s7 : 0000000000000001 s8 : ffffaf803043d0d8 s9 : ffffaf803b9c0700 s10: ffff8f8000006dc0 s11: ffffffff877a9180 t3 : ffffffff87d88058 t4 : 0000000000001fff t5 : 00000000000000c8 t6 : 0000000000000002 ssp : 0000000000000000 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] __local_bh_enable_ip+0x222/0x588 kernel/softirq.c:455 [] local_bh_enable include/linux/bottom_half.h:33 [inline] [] ipt_do_table+0xda0/0x1b5c net/ipv4/netfilter/ip_tables.c:357 [] nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] [] nf_hook_slow+0xac/0x208 net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:273 [inline] [] __ip_local_out+0x47e/0xb5c net/ipv4/ip_output.c:120 [] ip_local_out+0x28/0x17c net/ipv4/ip_output.c:129 [] synproxy_send_tcp.isra.0+0x3f8/0x5dc net/netfilter/nf_synproxy_core.c:439 [] synproxy_send_client_synack+0x604/0x868 net/netfilter/nf_synproxy_core.c:484 [] nft_synproxy_eval_v4 net/netfilter/nft_synproxy.c:59 [inline] [] nft_synproxy_do_eval+0x84e/0xa5c net/netfilter/nft_synproxy.c:141 [] nft_synproxy_eval+0x28/0x50 net/netfilter/nft_synproxy.c:247 [] expr_call_ops_eval net/netfilter/nf_tables_core.c:237 [inline] [] nft_do_chain+0x30a/0x149c net/netfilter/nf_tables_core.c:285 [] nft_do_chain_inet+0xfe/0x328 net/netfilter/nft_chain_filter.c:161 [] nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] [] nf_hook_slow+0xac/0x208 net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:273 [inline] [] NF_HOOK include/linux/netfilter.h:316 [inline] [] ip_local_deliver+0x2d2/0x55c net/ipv4/ip_input.c:262 [] dst_input include/net/dst.h:474 [inline] [] ip_rcv_finish+0x1ac/0x2a4 net/ipv4/ip_input.c:453 [] NF_HOOK include/linux/netfilter.h:318 [inline] [] NF_HOOK include/linux/netfilter.h:312 [inline] [] ip_rcv+0xd2/0x458 net/ipv4/ip_input.c:573 [] __netif_receive_skb_one_core+0x106/0x170 net/core/dev.c:6137 [] __netif_receive_skb+0x28/0x12c net/core/dev.c:6250 [] process_backlog+0x58e/0x1be0 net/core/dev.c:6602 [] __napi_poll.constprop.0+0x9e/0x4a8 net/core/dev.c:7666 [] napi_poll net/core/dev.c:7729 [inline] [] net_rx_action+0x9ea/0xde4 net/core/dev.c:7881 [] handle_softirqs+0x442/0x1198 kernel/softirq.c:622 [] __do_softirq kernel/softirq.c:656 [inline] [] invoke_softirq kernel/softirq.c:496 [inline] [] __irq_exit_rcu+0x2de/0x534 kernel/softirq.c:723 [] irq_exit_rcu+0x10/0xf4 kernel/softirq.c:739 [] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:446 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:396