INFO: task syz.0.107:4536 blocked for more than 430 seconds. Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.107 state:D stack:0 pid:4536 tgid:4534 ppid:4105 flags:0x00000002 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 [] exit_task_work include/linux/task_work.h:40 [inline] [] do_exit+0xa4c/0x2986 kernel/exit.c:939 [] do_group_exit+0xd4/0x26c kernel/exit.c:1088 [] get_signal+0x1e98/0x23b0 kernel/signal.c:2917 [] arch_do_signal_or_restart+0x8d6/0x1190 arch/riscv/kernel/signal.c:437 [] exit_to_user_mode_loop kernel/entry/common.c:111 [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+0x2a6/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_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/1:0/25: 1 lock held by khungtaskd/37: #0: ffffffff87fcc100 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x68/0x2d6 kernel/locking/lockdep.c:6716 1 lock held by kworker/R-dm_bu/1601: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 2 locks held by kworker/1:2/1832: 1 lock held by syslogd/2994: 2 locks held by getty/3164: #0: ff6000001bb1a0a0 (&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 1 lock held by syz-executor/3198: 3 locks held by kworker/0:2/3201: 3 locks held by syz-executor/3208: 2 locks held by kworker/R-wg-cr/3313: 1 lock held by kworker/R-wg-cr/3318: #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/3325: #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/3487: #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/3490: 1 lock held by kworker/R-wg-cr/3493: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 2 locks held by kworker/1:3/3848: 2 locks held by kworker/1:4/3898: 1 lock held by syz.0.61/4083: #0: ff600000154a8948 (mapping.invalidate_lock#2){+.+.}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ff600000154a8948 (mapping.invalidate_lock#2){+.+.}-{3:3}, at: blkdev_fallocate+0x1ac/0x30a block/fops.c:808 1 lock held by kworker/R-wg-cr/4201: 1 lock held by kworker/R-wg-cr/4219: #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/1:1/4508: 2 locks held by kworker/1:5/4509: 2 locks held by kworker/1:6/4529: 1 lock held by syz.0.107/4536: #0: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 2 locks held by kworker/1:7/4551: 3 locks held by kworker/u9:0/4559: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000005477c90 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff87fdc6c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x56/0x6cc kernel/rcu/tree.c:4561 7 locks held by syz-executor/4566: #0: ff6000001d3a0420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001d3a0420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001d3a0420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001d3a0420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff60000031f9ac88 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001b458788 (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: ff6000002e5450e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000002e5450e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ff6000002e5450e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x572 drivers/base/dd.c:1293 #5: ff6000002e546250 (&devlink->lock_key#2){+.+.}-{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/1:8/4720: 1 lock held by kworker/1:9/4935: #0: ffffffff87e86d68 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x36/0x3c4 kernel/workqueue.c:2669 2 locks held by kworker/1:10/4954: 2 locks held by kworker/1:11/4965: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 37 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 3313 Comm: kworker/R-wg-cr Not tainted 6.12.0-rc1-syzkaller-00002-gcfb10de18538 #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker epc : percpu_counter_add_batch+0x22e/0x45e lib/percpu_counter.c:136 ra : arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] ra : percpu_counter_add_batch+0x22a/0x45e lib/percpu_counter.c:135 epc : ffffffff816ff264 ra : ffffffff816ff260 sp : ff20000000017c40 gp : ffffffff897bea80 tp : ff6000001ac18000 t0 : ff6000001ac18b20 t1 : ffebffff064fa36b t2 : 00000000000000b9 s0 : ff20000000017cb0 s1 : 0000000000000002 a0 : 0000000000000007 a1 : 0000000000000000 a2 : 0000000000f00000 a3 : ffffffff816ff260 a4 : 0000000000000000 a5 : ff6000001ac18000 a6 : 0000000000f00000 a7 : 1fec00000358316d s2 : 0000000000000000 s3 : 0000000000000000 s4 : ffffffffffffffff s5 : 0000000000000008 s6 : ffffffff894c5358 s7 : 0000000000000010 s8 : ffffffff90b60b08 s9 : 0000000000000011 s10: 0000000000000010 s11: 1fec0000064fa36b t3 : 1fec000003583163 t4 : 000000000000000a t5 : 76a5efb94efd8395 t6 : 1fec000003583172 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_restore arch/riscv/include/asm/irqflags.h:51 [inline] [] percpu_counter_add_batch+0x22e/0x45e lib/percpu_counter.c:135 [] dst_entries_add include/net/dst_ops.h:59 [inline] [] dst_destroy+0x3cc/0xac6 net/core/dst.c:113 [] dst_destroy_rcu+0x1c/0x26 net/core/dst.c:135 [] rcu_do_batch kernel/rcu/tree.c:2567 [inline] [] rcu_core+0xa24/0x1eac kernel/rcu/tree.c:2823 [] rcu_core_si+0xc/0x14 kernel/rcu/tree.c:2840 [] 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