INFO: task kworker/u8:4:3212 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/u8:4 state:D stack:0 pid:3212 tgid:3212 ppid:2 task_flags:0x4208060 flags:0x00000000 Workqueue: wg-kex-wg1 wg_packet_handshake_send_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_write_slowpath+0x4b4/0xe20 kernel/locking/rwsem.c:1185 [] __down_write_common kernel/locking/rwsem.c:1317 [inline] [] __down_write kernel/locking/rwsem.c:1326 [inline] [] down_write+0x172/0x190 kernel/locking/rwsem.c:1591 [] wg_noise_handshake_create_initiation+0xee/0x5e4 drivers/net/wireguard/noise.c:530 [] wg_packet_send_handshake_initiation+0x182/0x2e8 drivers/net/wireguard/send.c:34 [] wg_packet_handshake_send_worker+0x1e/0x30 drivers/net/wireguard/send.c:51 [] 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: 2 locks held by kworker/1:0/24: 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 5 locks held by kworker/0:2/806: 1 lock held by syslogd/3013: 2 locks held by getty/3163: #0: ffffaf801921e0a0 (&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/3195: 2 locks held by kworker/1:1/3204: 4 locks held by kworker/u8:4/3212: #0: ffffaf801bcee148 ((wq_completion)wg-kex-wg1){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f80099b7b70 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffaf801a809308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xe4/0x5e4 drivers/net/wireguard/noise.c:529 #3: ffffaf80313020f0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xee/0x5e4 drivers/net/wireguard/noise.c:530 3 locks held by kworker/u8:5/3297: #0: ffffaf801bcee148 ((wq_completion)wg-kex-wg1){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f8009b17b70 ((work_completion)(&peer->clear_peer_work)){+.+.}-{0:0}, at: process_one_work+0x83c/0x1e14 kernel/workqueue.c:3232 #2: ffffaf80313020f0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_clear+0x26/0xb8 drivers/net/wireguard/noise.c:90 2 locks held by kworker/1:3/3675: 3 locks held by kworker/u8:7/3769: 4 locks held by kworker/0:4/3782: #0: ffffaf8022115d48 ((wq_completion)wg-kex-wg1#2){+.+.}-{0:0}, at: process_one_work+0x814/0x1e14 kernel/workqueue.c:3232 #1: ffff8f800a397b70 ((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: ffffaf801a809308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x138/0x8f8 drivers/net/wireguard/noise.c:598 #3: ffffaf80313020f0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x4bc/0x8f8 drivers/net/wireguard/noise.c:632 4 locks held by kworker/1:4/3827: 2 locks held by kworker/0:6/3828: 2 locks held by kworker/1:5/3829: 1 lock held by kworker/1:6/3839: 2 locks held by kworker/1:8/3853: 2 locks held by kworker/1:10/3908: 2 locks held by kworker/u8:0/3911: 2 locks held by kworker/0:5/3931: 3 locks held by kworker/u8:1/3960: 2 locks held by syz.0.70/4003: ============================================= NMI backtrace for cpu 0 CPU: 0 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 3769 Comm: kworker/u8:7 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) Workqueue: events_unbound nsim_dev_trap_report_work 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 : ffff8f8000016aa0 gp : ffffffff89f9af80 tp : ffffaf8030c0cf80 t0 : ffff8f8000016ee8 t1 : ffffffff8007a304 t2 : ffff8f80000166c0 s0 : ffff8f8000016af0 s1 : 0000000000000103 a0 : 0000000000000001 a1 : ffffffff87ef7658 a2 : 0000000000000003 a3 : 0000000000000001 a4 : 0000000000001000 a5 : 000000000008cac6 a6 : 0000000000000000 a7 : 0000000041b58ab3 s2 : ffffaf8030c0cf80 s3 : ffffffff85a70f4c s4 : 0000000000000001 s5 : ffffffff913696a8 s6 : 1ffff5f0061819f1 s7 : 0000000000000001 s8 : ffffaf8013abdaa0 s9 : ffffaf8030b53700 s10: ffff8f8000016d20 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 [] iptable_mangle_hook+0x5e/0x400 net/ipv4/netfilter/iptable_mangle.c:80 [] 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_COND include/linux/netfilter.h:306 [inline] [] ip_output+0x5a0/0x884 net/ipv4/ip_output.c:438 [] dst_output include/net/dst.h:464 [inline] [] ip_local_out+0xa6/0x17c net/ipv4/ip_output.c:131 [] 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