INFO: task syz.1.106:4164 blocked for more than 435 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.106 state:D stack:0 pid:4164 tgid:4161 ppid:3230 task_flags:0x400140 flags:0x00000002 Call Trace: [] context_switch kernel/sched/core.c:5533 [inline] [] __schedule+0x1de4/0x5014 kernel/sched/core.c:7284 [] __schedule_loop kernel/sched/core.c:7361 [inline] [] schedule+0xae/0x260 kernel/sched/core.c:7376 [] schedule_preempt_disabled+0x16/0x28 kernel/sched/core.c:7433 [] __mutex_lock_common kernel/locking/mutex.c:726 [inline] [] __mutex_lock+0xb92/0x192e kernel/locking/mutex.c:821 [] mutex_lock_nested+0x14/0x1c kernel/locking/mutex.c:874 [] fdget_pos+0x28c/0x32c fs/file.c:1259 [] class_fd_pos_constructor include/linux/file.h:85 [inline] [] ksys_write+0x86/0x244 fs/read_write.c:730 [] __do_sys_write fs/read_write.c:750 [inline] [] __se_sys_write fs/read_write.c:747 [inline] [] __riscv_sys_write+0x6e/0xa0 fs/read_write.c:747 [] syscall_handler+0x92/0x114 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x4ca/0x658 arch/riscv/kernel/traps.c:341 [] handle_exception+0x168/0x174 arch/riscv/kernel/entry.S:237 Showing all locks held in the system: locks held by kworker/u8:0/12: 3, last CPU#1: #0: ffffaf801291c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x132a/0x22b2 kernel/workqueue.c:3371 #1: ffff8f80000d7b50 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: psi_task_switch+0x50/0x848 kernel/sched/psi.c:933 #2: ffffaf8014bcf258 (&devlink->lock_key#2){+.+.}-{4:4}, at: raw_spin_rq_lock_nested kernel/sched/core.c:677 [inline] #2: ffffaf8014bcf258 (&devlink->lock_key#2){+.+.}-{4:4}, at: raw_spin_rq_lock kernel/sched/sched.h:1678 [inline] #2: ffffaf8014bcf258 (&devlink->lock_key#2){+.+.}-{4:4}, at: rq_lock kernel/sched/sched.h:2016 [inline] #2: ffffaf8014bcf258 (&devlink->lock_key#2){+.+.}-{4:4}, at: __schedule+0x308/0x5014 kernel/sched/core.c:7158 locks held by kworker/1:1/30: 2, last CPU#1: #0: ffffaf802b7b6d40 ((wq_completion)wg-kex-wg1#2){+.+.}-{0:0}, at: raw_spin_rq_lock_nested kernel/sched/core.c:677 [inline] #0: ffffaf802b7b6d40 ((wq_completion)wg-kex-wg1#2){+.+.}-{0:0}, at: raw_spin_rq_lock kernel/sched/sched.h:1678 [inline] #0: ffffaf802b7b6d40 ((wq_completion)wg-kex-wg1#2){+.+.}-{0:0}, at: rq_lock kernel/sched/sched.h:2016 [inline] #0: ffffaf802b7b6d40 ((wq_completion)wg-kex-wg1#2){+.+.}-{0:0}, at: __schedule+0x308/0x5014 kernel/sched/core.c:7158 #1: ffffaf8072cf5710 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x50/0x848 kernel/sched/psi.c:933 locks held by khungtaskd/32: 1, last CPU#0: #0: ffffffff893f8c40 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:847 [inline] #0: ffffffff893f8c40 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x3e/0x1a0 kernel/locking/lockdep.c:6871 locks held by kworker/u8:6/59: 4, last CPU#0: #0: ffffaf801291c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x132a/0x22b2 kernel/workqueue.c:3371 #1: ffff8f8000467b50 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work+0x8e8/0x22b2 kernel/workqueue.c:3372 #2: ffffaf8072ce8520 (&rq->__lock){-.-.}-{2:2}, at: percpu_down_read include/linux/percpu-rwsem.h:77 [inline] #2: ffffaf8072ce8520 (&rq->__lock){-.-.}-{2:2}, at: cpus_read_lock+0x14/0x1c kernel/cpu.c:490 #3: ffffffff89566100 (jump_label_mutex){+.+.}-{4:4}, at: jump_label_lock kernel/jump_label.c:27 [inline] #3: ffffffff89566100 (jump_label_mutex){+.+.}-{4:4}, at: static_key_disable_cpuslocked+0x11e/0x1e4 kernel/jump_label.c:238 locks held by kworker/u8:9/1353: 2, last CPU#1: #0: ffffaf801dee3140 ((wq_completion)wg-kex-wg1){+.+.}-{0:0}, at: schedule+0x12e/0x260 kernel/sched/core.c:7371 #1: ffffaf8072cd1710 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x50/0x848 kernel/sched/psi.c:933 locks held by kworker/u8:12/1411: 3, last CPU#0: #0: ffffaf801291c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x132a/0x22b2 kernel/workqueue.c:3371 #1: ffff8f8002b37b50 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x8e8/0x22b2 kernel/workqueue.c:3372 #2: ffffaf80166d4258 (&devlink->lock_key){+.+.}-{4:4}, at: devl_trylock+0x22/0x2c net/devlink/core.c:314 locks held by syslogd/3032: 1, last CPU#0: #0: ffffffff8962cd10 (remove_cache_srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:304 [inline] #0: ffffffff8962cd10 (remove_cache_srcu){.+.+}-{0:0}, at: kasan_quarantine_reduce+0x68/0x1b4 mm/kasan/quarantine.c:259 locks held by getty/3187: 2, on CPU#0: #0: ffffaf801ba730a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3a/0x46 drivers/tty/tty_ldsem.c:340