INFO: task segctord:4863 blocked for more than 143 seconds. Not tainted 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:segctord state:D stack:0 pid:4863 ppid:2 flags:0x00000008 Call trace: __switch_to+0x180/0x298 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5191 [inline] __schedule+0x408/0x594 kernel/sched/core.c:6503 schedule+0x64/0xa4 kernel/sched/core.c:6579 rwsem_down_write_slowpath+0x258/0x468 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x84/0x88 kernel/locking/rwsem.c:1563 nilfs_transaction_lock+0x8c/0x124 fs/nilfs2/segment.c:357 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2486 [inline] nilfs_segctor_thread+0x174/0x634 fs/nilfs2/segment.c:2570 kthread+0x12c/0x158 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:863 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/11: #0: ffff80000d3f3868 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/12: #0: ffff80000d3f3eb8 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/27: #0: ffff80000d3f3740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:303 2 locks held by kworker/u4:2/49: #0: ffff0001fefeee18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline] #0: ffff0001fefeee18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline] #0: ffff0001fefeee18 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline] #0: ffff0001fefeee18 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0xa4/0x594 kernel/sched/core.c:6420 #1: ffff0001fefddb88 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x280/0x380 kernel/sched/psi.c:909 1 lock held by udevd/2556: 2 locks held by getty/2713: #0: ffff0000c6ffd898 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x58 drivers/tty/tty_ldisc.c:244 #1: ffff80000f5f62f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x19c/0x89c drivers/tty/n_tty.c:2177 1 lock held by syz-executor.3/3071: #0: ffff80000d3f4cf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #0: ffff80000d3f4cf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x26c/0x4f4 kernel/rcu/tree_exp.h:946 4 locks held by syz-executor.0/4976: 1 lock held by segctord/4863: #0: ffff0001168862a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x8c/0x124 fs/nilfs2/segment.c:357 1 lock held by udevd/5168: #0: ffff0000c5c25cd0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff0000c5c25cd0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x5c/0x400 mm/readahead.c:226 2 locks held by udevd/5226: 2 locks held by udevd/5228: 1 lock held by udevd/27074: #0: ffff0000c5c247d0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff0000c5c247d0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_update_page+0x50/0x3b0 mm/filemap.c:2459 1 lock held by syz-executor.0/28457: =============================================