INFO: task syz-executor:6036 blocked for more than 431 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-executor state:D stack:0 pid:6036 tgid:6036 ppid:1 flags:0x00000004 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_preempt_disabled+0x16/0x28 kernel/sched/core.c:6824 [] __mutex_lock_common kernel/locking/mutex.c:684 [inline] [] __mutex_lock+0x86a/0x1022 kernel/locking/mutex.c:752 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:804 [] del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 [] bus_attr_store+0x6a/0x9e drivers/base/bus.c:172 [] sysfs_kf_write+0xe0/0x140 fs/sysfs/file.c:136 [] kernfs_fop_write_iter+0x2cc/0x460 fs/kernfs/file.c:334 [] new_sync_write fs/read_write.c:590 [inline] [] vfs_write+0x4d4/0x9b4 fs/read_write.c:683 [] ksys_write+0x128/0x266 fs/read_write.c:736 [] __do_sys_write fs/read_write.c:748 [inline] [] __se_sys_write fs/read_write.c:745 [inline] [] __riscv_sys_write+0x6e/0x94 fs/read_write.c:745 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x1aa/0x216 arch/riscv/kernel/traps.c:331 [] _new_vmalloc_restore_context_a0+0xc2/0xce Showing all locks held in the system: 2 locks held by kworker/0:1/9: 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 klogd/2999: 2 locks held by getty/3144: #0: ff600000181ac0a0 (&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 kworker/0:6/4102: 1 lock held by syz.0.264/4627: 2 locks held by kworker/0:0/4986: 2 locks held by kworker/0:3/5007: 2 locks held by kworker/0:4/5625: 2 locks held by kworker/0:5/5629: 2 locks held by kworker/0:7/5884: 2 locks held by kworker/0:8/5888: 2 locks held by kworker/0:10/5899: 2 locks held by kworker/0:11/5912: 2 locks held by kworker/0:12/5944: 4 locks held by kworker/u8:1/5952: #0: ff60000011e81948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000005a07c90 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 #2: ffffffff89397670 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xda/0x984 net/core/net_namespace.c:580 #3: ff60000018d4d3e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_destruct+0x150/0x3ca drivers/net/wireguard/device.c:249 1 lock held by syz.1.462/5970: 7 locks held by syz-executor/5977: #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff6000001ca09c88 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001ad74788 (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: ff6000001e45b0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ff6000001e45b0e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ff6000001e45b0e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x572 drivers/base/dd.c:1293 #5: ff6000001c669250 (&devlink->lock_key#3){+.+.}-{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 4 locks held by syz-executor/6036: #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1716 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1852 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ff6000001d31c420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x728/0x9b4 fs/read_write.c:679 #1: ff600000304a3088 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x23a/0x460 fs/kernfs/file.c:325 #2: ff6000001ad74788 (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/u10:6/6292: #0: ff60000011071148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1dae kernel/workqueue.c:3204 #1: ff20000005747c90 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1dae kernel/workqueue.c:3204 2 locks held by kworker/0:13/6604: 2 locks held by kworker/0:14/6606: 2 locks held by kworker/0:15/6607: 2 locks held by kworker/0:16/6614: 3 locks held by kworker/0:17/6618: 2 locks held by kworker/0:18/6625: 2 locks held by kworker/0:19/6630: 1 lock held by modprobe/6799: ============================================= NMI backtrace for cpu 1 CPU: 1 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 4986 Comm: kworker/0:0 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 : 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 : ffffffff800e2674 ra : ffffffff800e2670 sp : ff20000000007bf0 gp : ffffffff897bea80 tp : ff6000001f4b1a40 t0 : ff6000001f4b2560 t1 : ffebffff0dd85e68 t2 : 0000000000000482 s0 : ff20000000007c40 s1 : 0000000000000102 a0 : 0000000000000000 a1 : ffffffff8643e620 a2 : 0000000000000003 a3 : 0000000000000101 a4 : 0000000000000001 a5 : 00000000000a180a a6 : ff6000001f4b25a8 a7 : 1fec000003e964b5 s2 : ff6000001f4b1a40 s3 : ffffffff8530d250 s4 : 0000000000000001 s5 : ffffffff90b60b00 s6 : 1fec000003e96349 s7 : ffffffff897f7f20 s8 : 0000000000000000 s9 : 000000000000003b s10: ffffffff897f7f20 s11: 1fec00000643d5eb t3 : 1fec000003e964ab t4 : ffebffff0dd85e68 t5 : ffebffff0dd85e69 t6 : 1fec000003e964bf 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 [] __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline] [] _raw_spin_unlock_bh+0x34/0x40 kernel/locking/spinlock.c:210 [] spin_unlock_bh include/linux/spinlock.h:396 [inline] [] rt_del_uncached_list net/ipv4/route.c:1506 [inline] [] ipv4_dst_destroy+0x1c0/0x276 net/ipv4/route.c:1513 [] dst_destroy+0x102/0xac6 net/core/dst.c:116 [] 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