INFO: task bch-reclaim/loo:6727 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:0 pid:6727 tgid:6727 ppid:2 task_flags:0x200840 flags:0x00000010 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:7115 __mutex_lock_common+0xd04/0x2678 kernel/locking/mutex.c:676 __mutex_lock kernel/locking/mutex.c:760 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:812 btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 bch2_btree_write_buffer_journal_flush+0x70/0xc8 fs/bcachefs/btree_write_buffer.c:588 journal_flush_pins+0x6f4/0xc98 fs/bcachefs/journal_reclaim.c:604 __bch2_journal_reclaim+0x858/0xf84 fs/bcachefs/journal_reclaim.c:732 bch2_journal_reclaim_thread+0x13c/0x480 fs/bcachefs/journal_reclaim.c:774 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Showing all locks held in the system: 1 lock held by khungtaskd/32: #0: ffff80008f9d9620 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 2 locks held by pr/ttyAMA-1/43: 2 locks held by kworker/u8:9/2207: 2 locks held by getty/6316: #0: ffff0000d2d570a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff800099e8e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222 5 locks held by syz-executor/6641: #0: ffff0000c88320e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000c88320e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000c88320e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000f4280278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000f4284740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000f4284398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f42a6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6727: #0: ffff0000f42caf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000f4284398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000f4284740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6731: #0: ffff0000ce1f40e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000ce1f40e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000ce1f40e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000f4880278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000f4884740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000f4884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f48a6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6761: #0: ffff0000f48caf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000f4884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000f4884740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6773: #0: ffff0000d156e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000d156e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000d156e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000f2600278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000f2604740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000f2604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f2626710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6801: #0: ffff0000f264af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000f2604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000f2604740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6809: #0: ffff0000cb32e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000cb32e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000cb32e0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000f4080278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000f4084740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000f4084398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f40a6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6837: #0: ffff0000f40caf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000f4084398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000f4084740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6844: #0: ffff0000c35ae0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000c35ae0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000c35ae0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000fae80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000fae84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000fae84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000faea6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6884: #0: ffff0000faecaf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000fae84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000fae84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6888: #0: ffff0000dcd1a0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000dcd1a0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000dcd1a0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000f2a80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000f2a84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000f2a84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f2aa6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6927: #0: ffff0000f2acaf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000f2a84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000f2a84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6935: #0: ffff0000f2cf00e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000f2cf00e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000f2cf00e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff000105400278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff000105404740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff000105404398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff000105426710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/6973: #0: ffff00010544af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff000105404398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff000105404740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/6979: #0: ffff0000d8a6c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000d8a6c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000d8a6c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff0000fce00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff0000fce04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff0000fce04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000fce26710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/7019: #0: ffff0000fce4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff0000fce04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff0000fce04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/7024: #0: ffff0001005240e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0001005240e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0001005240e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff00010b400278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff00010b404740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff00010b404398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff00010b426710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/7063: #0: ffff00010b44af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff00010b404398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff00010b404740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 5 locks held by syz-executor/7067: #0: ffff000101d9c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff000101d9c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff000101d9c0e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff000114a80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff000114a84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff000114a84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff000114aa6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 3 locks held by bch-reclaim/loo/7106: #0: ffff000114acaf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff000114a84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff000114a84740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 =============================================