INFO: task syz-executor:6820 blocked for more than 436 seconds. Not tainted 6.16.0-rc1-syzkaller-gfda589c28604 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:0 pid:6820 tgid:6820 ppid:6805 task_flags:0x400140 flags:0x00000000 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_preempt_disabled+0x16/0x28 kernel/sched/core.c:6935 [] __mutex_lock_common kernel/locking/mutex.c:679 [inline] [] __mutex_lock+0x9be/0x1292 kernel/locking/mutex.c:747 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:799 [] device_lock include/linux/device.h:884 [inline] [] device_del+0xac/0x898 drivers/base/core.c:3843 [] device_unregister+0x28/0xe0 drivers/base/core.c:3922 [] nsim_bus_dev_del drivers/net/netdevsim/bus.c:462 [inline] [] del_device_store+0x338/0x48c drivers/net/netdevsim/bus.c:226 [] bus_attr_store+0x6a/0x9e drivers/base/bus.c:172 [] sysfs_kf_write+0xc2/0x11c fs/sysfs/file.c:145 [] kernfs_fop_write_iter+0x2e2/0x476 fs/kernfs/file.c:334 [] new_sync_write fs/read_write.c:593 [inline] [] vfs_write+0x56c/0xb12 fs/read_write.c:686 [] ksys_write+0x126/0x234 fs/read_write.c:738 [] __do_sys_write fs/read_write.c:749 [inline] [] __se_sys_write fs/read_write.c:746 [inline] [] __riscv_sys_write+0x6e/0xa0 fs/read_write.c:746 [] syscall_handler+0x94/0x118 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x396/0x530 arch/riscv/kernel/traps.c:341 [] handle_exception+0x146/0x152 arch/riscv/kernel/entry.S:197 Showing all locks held in the system: 1 lock held by kthreadd/2: 1 lock held by khungtaskd/38: #0: ffffffff883dc420 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2a/0x1a0 kernel/locking/lockdep.c:6766 2 locks held by dhcpcd/3033: 1 lock held by dhcpcd/3117: 2 locks held by getty/3140: #0: ffffaf801bdd80a0 (&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 2 locks held by sshd/3169: 1 lock held by syz-executor/3171: 2 locks held by kworker/u10:0/4267: #0: ffffaf8011a89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f32 kernel/workqueue.c:3213 #1: ffff8f8005617b70 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f32 kernel/workqueue.c:3213 3 locks held by kworker/u10:2/5257: #0: ffffaf8011a89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x848/0x1f32 kernel/workqueue.c:3213 #1: ffff8f8003447b70 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x870/0x1f32 kernel/workqueue.c:3213 #2: ffffffff89866e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:80 7 locks held by kworker/u8:3/6145: 3 locks held by kworker/u9:4/6709: 3 locks held by kworker/u8:1/6759: #0: ffffaf801c998148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x848/0x1f32 kernel/workqueue.c:3213 #1: ffff8f80036c7b70 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f32 kernel/workqueue.c:3213 #2: ffffffff89866e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x22/0x2a net/core/rtnetlink.c:80 4 locks held by kworker/u9:6/6786: #0: ffffaf801c62c148 ((wq_completion)wg-kex-wg1#3){+.+.}-{0:0}, at: process_one_work+0x848/0x1f32 kernel/workqueue.c:3213 #1: ffff8f80034f7b70 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f32 kernel/workqueue.c:3213 #2: ffffaf8018801308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xe4/0x5f0 drivers/net/wireguard/noise.c:529 #3: ffffaf802fcaa0f0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0xee/0x5f0 drivers/net/wireguard/noise.c:530 2 locks held by kworker/1:6/6793: 5 locks held by kworker/1:7/6795: 4 locks held by kworker/0:4/6797: #0: ffffaf801a206d48 ((wq_completion)wg-kex-wg1#4){+.+.}-{0:0}, at: process_one_work+0x848/0x1f32 kernel/workqueue.c:3213 #1: ffff8f8003637b70 ((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__(*((worker))) *)(( unsigned long)((worker))))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work+0x870/0x1f32 kernel/workqueue.c:3213 #2: ffffaf8018801308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x12c/0x904 drivers/net/wireguard/noise.c:598 #3: ffffaf802fcaa0f0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x4b4/0x904 drivers/net/wireguard/noise.c:632 2 locks held by kworker/0:7/6817: 5 locks held by syz-executor/6820: #0: ffffaf801c564428 (sb_writers#6){.+.+}-{0:0}, at: percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] #0: ffffaf801c564428 (sb_writers#6){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1793 [inline] #0: ffffaf801c564428 (sb_writers#6){.+.+}-{0:0}, at: sb_start_write include/linux/fs.h:1929 [inline] #0: ffffaf801c564428 (sb_writers#6){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3092 [inline] #0: ffffaf801c564428 (sb_writers#6){.+.+}-{0:0}, at: vfs_write+0x7ca/0xb12 fs/read_write.c:682 #1: ffffaf8035507088 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x250/0x476 fs/kernfs/file.c:325 #2: ffffaf801825c788 (kn->active#4){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x26e/0x476 fs/kernfs/file.c:326 #3: ffffffff890deb28 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xf0/0x48c drivers/net/netdevsim/bus.c:216 #4: ffffaf80336b40e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:884 [inline] #4: ffffaf80336b40e8 (&dev->mutex){....}-{4:4}, at: device_del+0xac/0x898 drivers/base/core.c:3843 1 lock held by kworker/u8:2/7106: 2 locks held by modprobe/7458: 1 lock held by kworker/1:0/7460: 2 locks held by kworker/u9:0/7461: 3 locks held by kworker/1:1/7462: 4 locks held by kworker/u9:1/7464: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Not tainted 6.16.0-rc1-syzkaller-gfda589c28604 #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: 7106 Comm: kworker/u8:2 Not tainted 6.16.0-rc1-syzkaller-gfda589c28604 #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) Workqueue: 0x0 (gid-cache-wq) 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+0x38e/0x5e8 kernel/softirq.c:414 ra : __local_bh_enable_ip+0x38a/0x5e8 kernel/softirq.c:412 epc : ffffffff80160e9a ra : ffffffff80160e96 sp : ffff8f80000174f0 gp : ffffffff89c7e9c0 tp : ffffaf8034a1b480 t0 : ffffaf80323eb680 t1 : 0000000000000000 t2 : fffffffff2f20000 s0 : ffff8f8000017540 s1 : 0000000000000101 a0 : 0000000000000001 a1 : ffffffff87d6da40 a2 : 0000000000000003 a3 : 0000000000000100 a4 : 0000000000000001 a5 : 000000000000e51a a6 : 0000000000f00000 a7 : 0000000000000004 s2 : ffffaf8034a1b480 s3 : ffffffff859e9a76 s4 : 0000000000000001 s5 : ffffffff910373c0 s6 : 1ffff5f006943691 s7 : ffffffff89cbf9c0 s8 : ffff8f8000017780 s9 : dfffffff00000000 s10: ffff8f8000017720 s11: ffffaf802dba3d00 t3 : 1ffff5f006e05e01 t4 : ffffffff876a8388 t5 : ffffaf801ebc0128 t6 : 0000000000000002 status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000001 [] arch_local_irq_enable arch/riscv/include/asm/irqflags.h:21 [inline] [] __local_bh_enable_ip+0x38e/0x5e8 kernel/softirq.c:412 [] local_bh_enable include/linux/bottom_half.h:33 [inline] [] ipt_do_table+0xe88/0x1c82 net/ipv4/netfilter/ip_tables.c:357 [] 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_rcv+0x20e/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 kernel/softirq.c:613 [inline] [] invoke_softirq kernel/softirq.c:453 [inline] [] __irq_exit_rcu+0x18c/0x550 kernel/softirq.c:680 [] irq_exit_rcu+0x10/0xf8 kernel/softirq.c:696 [] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:388 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:360