INFO: task bch-reclaim/loo:6898 blocked for more than 145 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:6898 tgid:6898 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: 4 locks held by kworker/R-netns/8: #0: ffff0000c18a2948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800097c07bc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff800092a6ce10 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf4/0x6c0 net/core/net_namespace.c:658 #3: ffff800092a79c68 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 2 locks held by kworker/0:0H/11: #0: ffff0000c1f41548 ((wq_completion)kblockd){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800097c37be0 ((work_completion)(&q->timeout_work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 3 locks held by kworker/u8:0/12: 3 locks held by kworker/u8:1/14: 1 lock held by khungtaskd/32: #0: ffff80008f9c9620 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 5 locks held by kworker/R-write/34: #0: ffff0000c1f72948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800097fc7bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000d432e0e0 (&type->s_umount_key #60){++++}-{4:4}, at: super_trylock_shared+0x24/0xdc fs/super.c:563 #3: ffff000108845920 (&ni->ni_lock#3){+.+.}-{4:4}, at: ni_trylock fs/ntfs3/ntfs_fs.h:1133 [inline] #3: ffff000108845920 (&ni->ni_lock#3){+.+.}-{4:4}, at: ni_write_inode+0x18c/0xd74 fs/ntfs3/frecord.c:3218 #4: ffff0001088451c8 (&ni->ni_lock#3){+.+.}-{4:4}, at: ni_trylock fs/ntfs3/ntfs_fs.h:1133 [inline] #4: ffff0001088451c8 (&ni->ni_lock#3){+.+.}-{4:4}, at: ni_update_parent+0x750/0xb10 fs/ntfs3/frecord.c:3179 3 locks held by kworker/u8:2/41: 3 locks held by kworker/u8:3/42: 2 locks held by pr/ttyAMA-1/43: 2 locks held by kswapd0/74: 3 locks held by kworker/u8:4/248: 6 locks held by kworker/u8:5/716: 3 locks held by kworker/u8:6/2052: 3 locks held by kworker/u8:7/2186: 3 locks held by kworker/R-ipv6_/4200: #0: ffff0000cbdae148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff8000a2737bc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff800092a79c68 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 3 locks held by kworker/u8:8/4822: 4 locks held by kworker/0:2/6134: #0: ffff0000c0028d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff8000a6647be0 (reg_work){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff800092a79c68 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 #3: ffff0000d4960768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: class_wiphy_constructor include/net/cfg80211.h:6212 [inline] #3: ffff0000d4960768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: reg_process_self_managed_hints+0xc8/0x1dc net/wireless/reg.c:3209 1 lock held by klogd/6159: 2 locks held by udevd/6170: 1 lock held by dhcpcd/6224: 3 locks held by dhcpcd/6225: 2 locks held by getty/6314: #0: ffff0000d3a640a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009bbeb2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222 2 locks held by udevd/6520: 5 locks held by syz-executor/6528: #0: ffff0000d3c720e0 (&type->s_umount_key#67){++++}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000d3c720e0 (&type->s_umount_key#67){++++}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000d3c720e0 (&type->s_umount_key#67){++++}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 #1: ffff000100480278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xfc/0x800 fs/bcachefs/super.c:676 #2: ffff000100484740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff000100484398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0001004a6710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 1 lock held by syz-executor/6532: #0: ffff0000c1eda0e0 (&type->s_umount_key#71){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff0000c1eda0e0 (&type->s_umount_key#71){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff0000c1eda0e0 (&type->s_umount_key#71){+.+.}-{4:4}, at: deactivate_super+0xd8/0x100 fs/super.c:506 2 locks held by syz-executor/6533: 2 locks held by udevd/6546: 3 locks held by bch-reclaim/loo/6898: #0: ffff0001004caf68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff000100484398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff000100484740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 3 locks held by syz-executor/7932: #0: ffff0000c1917b38 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x1fc/0x2a0 fs/file.c:1232 #1: ffff000108845460 (&type->i_mutex_dir_key#11){++++}-{4:4}, at: iterate_dir+0x224/0x478 fs/readdir.c:101 #2: ffff000108840908 (&ni->file.run_lock#2){.+.+}-{4:4}, at: mi_read+0x188/0x4cc fs/ntfs3/record.c:129 3 locks held by kworker/u8:9/8442: 3 locks held by kworker/u8:10/8444: 2 locks held by syz-executor/8446: =============================================