INFO: task syz.0.459:5179 blocked for more than 430 seconds. Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 Blocked by coredump. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.459 state:D stack:0 pid:5179 tgid:5179 ppid:3174 task_flags:0x40044c flags:0x0000000c Call Trace: [] context_switch kernel/sched/core.c:5396 [inline] [] __schedule+0x1022/0x4094 kernel/sched/core.c:6785 [] __schedule_loop kernel/sched/core.c:6863 [inline] [] schedule+0xc4/0x35e kernel/sched/core.c:6878 [] schedule_timeout+0x1c6/0x2ae kernel/time/sleep_timeout.c:75 [] do_wait_for_common kernel/sched/completion.c:95 [inline] [] __wait_for_common+0x1d2/0x3e8 kernel/sched/completion.c:116 [] wait_for_common kernel/sched/completion.c:127 [inline] [] wait_for_completion+0x1a/0x22 kernel/sched/completion.c:148 [] rcu_barrier+0x2dc/0x6cc kernel/rcu/tree.c:3850 [] netdev_run_todo+0x294/0x10b4 net/core/dev.c:11376 [] rtnl_unlock+0x14/0x1c net/core/rtnetlink.c:157 [] tun_detach drivers/net/tun.c:639 [inline] [] tun_chr_close+0xde/0x230 drivers/net/tun.c:3396 [] __fput+0x382/0xa8c fs/file_table.c:465 [] ____fput+0x1c/0x26 fs/file_table.c:493 [] task_work_run+0x16a/0x25e kernel/task_work.c:227 [] exit_task_work include/linux/task_work.h:40 [inline] [] do_exit+0x844/0x28ca kernel/exit.c:955 [] do_group_exit+0xd4/0x26c kernel/exit.c:1104 [] get_signal+0x207c/0x22fc kernel/signal.c:3034 [] arch_do_signal_or_restart+0x68e/0x24c6 arch/riscv/kernel/signal.c:431 [] exit_to_user_mode_loop+0x90/0x134 kernel/entry/common.c:111 [] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] [] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] [] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] [] do_trap_ecall_u+0x3f0/0x530 arch/riscv/kernel/traps.c:355 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:197 Showing all locks held in the system: 2 locks held by kworker/1:0/24: 1 lock held by khungtaskd/37: #0: ffffffff883dc420 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6766 2 locks held by kworker/1:2/924: 2 locks held by syslogd/2983: 2 locks held by getty/3132: #0: ffffaf801d06c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ffff8f800008b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x3e4/0x12b6 drivers/tty/n_tty.c:2222 1 lock held by syz-executor/3164: 2 locks held by syz-executor/3176: 3 locks held by kworker/u9:0/3179: 2 locks held by kworker/R-wg-cr/3344: 1 lock held by kworker/R-wg-cr/3347: #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2736 [inline] #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x776/0xd68 kernel/workqueue.c:3531 1 lock held by kworker/R-wg-cr/3353: #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2736 [inline] #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x776/0xd68 kernel/workqueue.c:3531 2 locks held by kworker/1:1/3703: 3 locks held by kworker/1:3/3875: 2 locks held by kworker/1:4/4396: 3 locks held by kworker/u9:4/4852: 3 locks held by kworker/u9:6/5022: 2 locks held by kworker/1:7/5031: 4 locks held by kworker/1:8/5040: 1 lock held by syz.0.459/5179: #0: ffffffff883ec640 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:3782 2 locks held by kworker/1:5/5307: 4 locks held by kworker/u9:7/5320: 1 lock held by kworker/R-wg-cr/5334: #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2736 [inline] #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x776/0xd68 kernel/workqueue.c:3531 1 lock held by kworker/R-wg-cr/5337: #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_detach_from_pool kernel/workqueue.c:2736 [inline] #0: ffffffff88291a28 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x776/0xd68 kernel/workqueue.c:3531 1 lock held by kworker/R-wg-cr/5340: 2 locks held by kworker/1:9/5594: 2 locks held by syz.2.497/5635: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:132 [] show_stack+0x30/0x3c arch/riscv/kernel/stacktrace.c:138 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x12e/0x1a6 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x3b0/0x3b2 lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x458 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:158 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:307 [inline] [] watchdog+0xcf2/0x11de kernel/hung_task.c:470 [] kthread+0x39c/0x7d4 kernel/kthread.c:464 [] ret_from_fork_kernel+0x2a/0xbb2 arch/riscv/kernel/process.c:214 [] ret_from_fork_kernel_asm+0x16/0x18 arch/riscv/kernel/entry.S:327 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 3344 Comm: kworker/R-wg-cr Not tainted 6.16.0-rc1-syzkaller-g306e57988197 #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Workqueue: wg-crypt-wg0 wg_packet_decrypt_worker epc : __sanitizer_cov_trace_const_cmp1+0x0/0x1c kernel/kcov.c:299 ra : walk_stackframe+0x276/0x44e arch/riscv/kernel/stacktrace.c:58 epc : ffffffff804eb558 ra : ffffffff80078624 sp : ffff8f8000016650 gp : ffffffff89c7e9c0 tp : ffffaf801fdfcec0 t0 : ffff8f80000169a0 t1 : ffffffff89d88a80 t2 : fffffffff2f20000 s0 : ffff8f80000166d0 s1 : ffff8f8000017070 a0 : 0000000000000000 a1 : 0000000000000001 a2 : 0000000000f00000 a3 : ffffffff8007860a a4 : 1ffff1f000002d02 a5 : 0000000000000040 a6 : 0000000000f00000 a7 : 0000000000000001 s2 : ffff8f8000017010 s3 : 000000000000000f s4 : 0000000000000000 s5 : dfffffff00000000 s6 : ffffffff855d0138 s7 : 0000000000000001 s8 : dfffffff00000000 s9 : 0000000000007fff s10: ffffffff86324f84 s11: 0000000000000007 t3 : 72f96c7100000000 t4 : fffffffef21f44a2 t5 : fffffffef21f44a3 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] __sanitizer_cov_trace_const_cmp1+0x0/0x1c kernel/kcov.c:295 [] arch_stack_walk+0x1c/0x26 arch/riscv/kernel/stacktrace.c:165 [] stack_trace_save+0xa0/0xd2 kernel/stacktrace.c:122 [] kasan_save_stack+0x3e/0x6a mm/kasan/common.c:47 [] kasan_save_track+0x16/0x28 mm/kasan/common.c:68 [] kasan_save_alloc_info+0x30/0x3e mm/kasan/generic.c:562 [] poison_kmalloc_redzone mm/kasan/common.c:377 [inline] [] __kasan_kmalloc+0xa0/0xa6 mm/kasan/common.c:394 [] kasan_kmalloc include/linux/kasan.h:260 [inline] [] __kmalloc_cache_noprof+0x15a/0x3e8 mm/slub.c:4359 [] kmalloc_noprof include/linux/slab.h:905 [inline] [] slab_free_hook mm/slub.c:2333 [inline] [] slab_free mm/slub.c:4643 [inline] [] kmem_cache_free+0x154/0x604 mm/slub.c:4745 [] nf_conntrack_free+0x10c/0x4a4 net/netfilter/nf_conntrack_core.c:1732 [] nf_ct_destroy+0x176/0x272 net/netfilter/nf_conntrack_core.c:601 [] nf_ct_put include/net/netfilter/nf_conntrack.h:186 [inline] [] nf_ct_put include/net/netfilter/nf_conntrack.h:183 [inline] [] nf_conntrack_in+0x710/0x1c3c net/netfilter/nf_conntrack_core.c:2058 [] ipv4_conntrack_local+0xf6/0x200 net/netfilter/nf_conntrack_proto.c:229 [] nf_hook_entry_hookfn include/linux/netfilter.h:157 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:272 [inline] [] __ip_local_out+0x498/0xbb2 net/ipv4/ip_output.c:118 [] ip_local_out+0x2e/0x1a8 net/ipv4/ip_output.c:127 [] synproxy_send_tcp.isra.0+0x3de/0x5d2 net/netfilter/nf_synproxy_core.c:439 [] synproxy_send_client_synack+0x6dc/0x8be net/netfilter/nf_synproxy_core.c:484 [] nft_synproxy_eval_v4 net/netfilter/nft_synproxy.c:59 [inline] [] nft_synproxy_do_eval+0x8ac/0xa52 net/netfilter/nft_synproxy.c:141 [] nft_synproxy_eval+0x28/0x36 net/netfilter/nft_synproxy.c:247 [] expr_call_ops_eval net/netfilter/nf_tables_core.c:237 [inline] [] nft_do_chain+0x328/0x1598 net/netfilter/nf_tables_core.c:285 [] nft_do_chain_inet+0x180/0x316 net/netfilter/nft_chain_filter.c:161 [] nf_hook_entry_hookfn include/linux/netfilter.h:157 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:623 [] nf_hook include/linux/netfilter.h:272 [inline] [] NF_HOOK include/linux/netfilter.h:315 [inline] [] ip_local_deliver+0x2ea/0x568 net/ipv4/ip_input.c:254 [] dst_input include/net/dst.h:469 [inline] [] ip_rcv_finish+0x1b0/0x2d2 net/ipv4/ip_input.c:447 [] NF_HOOK include/linux/netfilter.h:317 [inline] [] NF_HOOK include/linux/netfilter.h:311 [inline] [] ip_rcv+0xd6/0x44e net/ipv4/ip_input.c:567 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:5977 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:6090 [] process_backlog+0x4f6/0x1cb0 net/core/dev.c:6442 [] __napi_poll.constprop.0+0xaa/0x4ba net/core/dev.c:7414 [] napi_poll net/core/dev.c:7478 [inline] [] net_rx_action+0xad4/0xefc net/core/dev.c:7605 [] handle_softirqs+0x4b2/0x132e kernel/softirq.c:579 [] __do_softirq+0x12/0x1a kernel/softirq.c:613 [] ___do_softirq+0x18/0x20 arch/riscv/kernel/irq.c:85 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:360