INFO: task syz.1.1052:8409 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.1052 state:D stack:0 pid:8409 tgid:8409 ppid:7492 flags:0x00000006 Call Trace: [] context_switch kernel/sched/core.c:5315 [inline] [] __schedule+0xd5a/0x3886 kernel/sched/core.c:6675 [] __schedule_loop kernel/sched/core.c:6752 [inline] [] schedule+0xc4/0x324 kernel/sched/core.c:6767 [] schedule_timeout+0x1e2/0x296 kernel/time/timer.c:2591 [] do_wait_for_common kernel/sched/completion.c:95 [inline] [] __wait_for_common+0x1ca/0x4b6 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:4629 [] netdev_run_todo+0x294/0x105e net/core/dev.c:10778 [] rtnl_unlock+0x14/0x1c net/core/rtnetlink.c:152 [] tun_detach drivers/net/tun.c:704 [inline] [] tun_chr_close+0xde/0x230 drivers/net/tun.c:3517 [] __fput+0x378/0x9e6 fs/file_table.c:431 [] ____fput+0x1c/0x26 fs/file_table.c:459 [] task_work_run+0x16a/0x25e kernel/task_work.c:228 [] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] [] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] [] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] [] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] [] syscall_exit_to_user_mode+0x30a/0x31e kernel/entry/common.c:218 [] do_trap_ecall_u+0x86/0x216 arch/riscv/kernel/traps.c:345 [] _new_vmalloc_restore_context_a0+0xc2/0xce Showing all locks held in the system: 1 lock held by kworker/R-mm_pe/13: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 1 lock held by khungtaskd/38: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 2 locks held by kworker/0:2/929: 1 lock held by kworker/R-dm_bu/1600: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 1 lock held by klogd/2998: 2 locks held by getty/3148: #0: ff6000001cabf0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340 #1: ff2000000008b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd7c/0x129a drivers/tty/n_tty.c:2211 2 locks held by syz-executor/3174: 1 lock held by kworker/R-wg-cr/3412: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 1 lock held by kworker/R-wg-cr/3415: 1 lock held by kworker/R-wg-cr/3418: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 1 lock held by syz.0.38/3988: 2 locks held by kworker/0:6/4389: 1 lock held by kworker/R-wg-cr/4903: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 1 lock held by kworker/R-wg-cr/4906: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 1 lock held by kworker/R-wg-cr/4909: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 1 lock held by kworker/0:3/6221: 2 locks held by kworker/0:0/6722: 2 locks held by kworker/0:4/7279: 1 lock held by kworker/R-wg-cr/7604: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 4 locks held by kworker/R-wg-cr/7607: 1 lock held by kworker/R-wg-cr/7610: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool kernel/workqueue.c:2727 [inline] #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x73e/0xc72 kernel/workqueue.c:3526 2 locks held by kworker/0:1/8026: 2 locks held by kworker/0:5/8047: 2 locks held by kworker/0:7/8213: 2 locks held by kworker/0:8/8324: 2 locks held by kworker/0:9/8360: 2 locks held by kworker/0:10/8401: 2 locks held by kworker/0:11/8402: 1 lock held by syz.1.1052/8409: #0: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 7 locks held by syz-executor/8423: #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000003a101488 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001af78788 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x258/0x460 fs/kernfs/file.c:326 #3: ffffffff88c129e8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 #4: ff6000002e4a80e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000002e4a80e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ff6000002e4a80e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x572 drivers/base/dd.c:1293 #5: ff600000198dd250 (&devlink->lock_key#4){+.+.}-{3:3}, at: devl_lock+0x22/0x2c net/devlink/core.c:276 #6: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 2 locks held by kworker/0:12/8433: 1 lock held by syz.0.1057/8436: #0: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 2 locks held by kworker/0:13/8471: 4 locks held by syz-executor/8563: #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001d644420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000003aa93488 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001af78788 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x258/0x460 fs/kernfs/file.c:326 #3: ffffffff88c129e8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 2 locks held by kworker/0:14/8736: 2 locks held by kworker/0:15/8949: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 38 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136 [] __dump_stack lib/dump_stack.c:94 [inline] [] dump_stack_lvl+0x122/0x196 lib/dump_stack.c:120 [] dump_stack+0x1c/0x24 lib/dump_stack.c:129 [] nmi_cpu_backtrace+0x39c/0x39e lib/nmi_backtrace.c:113 [] nmi_trigger_cpumask_backtrace+0x2b6/0x456 lib/nmi_backtrace.c:62 [] arch_trigger_cpumask_backtrace+0x2c/0x3c arch/riscv/kernel/smp.c:347 [] trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] [] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] [] watchdog+0xcfa/0x1178 kernel/hung_task.c:379 [] kthread+0x28c/0x3a6 kernel/kthread.c:389 [] ret_from_fork+0xe/0x18 arch/riscv/kernel/entry.S:326 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 8402 Comm: kworker/0:11 Not tainted 6.12.0-rc1-syzkaller-00010-gc05ad457ce8c #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: wg-crypt-wg1 wg_packet_encrypt_worker 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+0x392/0x5ee kernel/softirq.c:389 ra : __local_bh_enable_ip+0x38e/0x5ee kernel/softirq.c:387 epc : ffffffff800e2684 ra : ffffffff800e2680 sp : ff20000000006ae0 gp : ffffffff897bea80 tp : ff6000001c989a40 t0 : ff6000001c98a560 t1 : 0000000000000130 t2 : 0000000000000006 s0 : ff20000000006b30 s1 : 0000000000000102 a0 : 0000000000000000 a1 : ffffffff8643e620 a2 : 0000000000000003 a3 : 0000000000000101 a4 : 0000000000000001 a5 : 000000000003167e a6 : ff6000001c98a5a8 a7 : 1fec0000039314b5 s2 : ff6000001c989a40 s3 : ffffffff855d3d06 s4 : 0000000000000001 s5 : ffffffff90b60b00 s6 : 1fec000003931349 s7 : ffffffff897f7f20 s8 : ff20000000006d60 s9 : dfffffff00000000 s10: ff600000208f3900 s11: ff20000000006d00 t3 : 1fec000006237d03 t4 : ff6000001d6a0138 t5 : ffffffff87217028 t6 : 1fec0000039314c9 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] __local_bh_enable_ip+0x392/0x5ee kernel/softirq.c:387 [] local_bh_enable include/linux/bottom_half.h:33 [inline] [] ipt_do_table+0xe9a/0x1d54 net/ipv4/netfilter/ip_tables.c:357 [] nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:626 [] nf_hook include/linux/netfilter.h:269 [inline] [] __ip_local_out+0x498/0x9ce net/ipv4/ip_output.c:119 [] ip_local_out+0x2e/0x1a8 net/ipv4/ip_output.c:128 [] synproxy_send_tcp.isra.0+0x3de/0x5d2 net/netfilter/nf_synproxy_core.c:439 [] synproxy_send_client_synack+0x940/0xc9a 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:240 [inline] [] nft_do_chain+0x328/0x1598 net/netfilter/nf_tables_core.c:288 [] nft_do_chain_inet+0x180/0x316 net/netfilter/nft_chain_filter.c:161 [] nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] [] nf_hook_slow+0xb8/0x1ec net/netfilter/core.c:626 [] nf_hook include/linux/netfilter.h:269 [inline] [] NF_HOOK include/linux/netfilter.h:312 [inline] [] ip_local_deliver+0x2ea/0x568 net/ipv4/ip_input.c:254 [] dst_input include/net/dst.h:460 [inline] [] ip_rcv_finish+0x1b0/0x2d2 net/ipv4/ip_input.c:449 [] NF_HOOK include/linux/netfilter.h:314 [inline] [] NF_HOOK include/linux/netfilter.h:308 [inline] [] ip_rcv+0xd6/0x44e net/ipv4/ip_input.c:569 [] __netif_receive_skb_one_core+0x106/0x16e net/core/dev.c:5662 [] __netif_receive_skb+0x2c/0x144 net/core/dev.c:5775 [] process_backlog+0x4fc/0x1cbc net/core/dev.c:6107 [] __napi_poll.constprop.0+0xaa/0x4b8 net/core/dev.c:6771 [] napi_poll net/core/dev.c:6840 [inline] [] net_rx_action+0xa12/0xf10 net/core/dev.c:6962 [] handle_softirqs+0x4a6/0x10de kernel/softirq.c:554 [] __do_softirq+0x12/0x1a kernel/softirq.c:588 [] ___do_softirq+0x18/0x20 arch/riscv/kernel/irq.c:85 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:355