INFO: task kworker/u8:0:11 blocked for more than 144 seconds. Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:0 state:D stack:0 pid:11 tgid:11 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-bcachefs-9) Call trace: __switch_to+0x420/0x6dc arch/arm64/kernel/process.c:603 context_switch kernel/sched/core.c:5188 [inline] __schedule+0x13d4/0x2418 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6621 schedule_timeout+0xb8/0x33c kernel/time/timer.c:2557 ___down_common+0x2a4/0x4e0 kernel/locking/semaphore.c:225 __down_common+0xbc/0x454 kernel/locking/semaphore.c:246 __down+0x18/0x24 kernel/locking/semaphore.c:254 down+0x94/0xe8 kernel/locking/semaphore.c:63 console_lock+0x16c/0x1f4 kernel/printk/printk.c:2735 __bch2_print_string_as_lines fs/bcachefs/util.c:267 [inline] bch2_print_string_as_lines+0x2c/0xd4 fs/bcachefs/util.c:286 bch2_print_allocator_stuck+0xc60/0xcf0 fs/bcachefs/alloc_foreground.c:1793 __bch2_wait_on_allocator+0x174/0x23c fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:238 [inline] __bch2_write+0x435c/0x498c fs/bcachefs/io_write.c:1506 bch2_write+0x8bc/0x153c fs/bcachefs/io_write.c:1633 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:460 [inline] bch2_writepages+0x224/0x304 fs/bcachefs/fs-io-buffered.c:652 do_writepages+0x304/0x7cc mm/page-writeback.c:2683 __writeback_single_inode+0x158/0x14e4 fs/fs-writeback.c:1651 writeback_sb_inodes+0x7dc/0x1190 fs/fs-writeback.c:1947 __writeback_inodes_wb+0xec/0x234 fs/fs-writeback.c:2018 wb_writeback+0x42c/0x1040 fs/fs-writeback.c:2129 wb_check_background_flush fs/fs-writeback.c:2199 [inline] wb_do_writeback fs/fs-writeback.c:2287 [inline] wb_workfn+0xc2c/0x104c fs/fs-writeback.c:2314 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x978/0xec4 kernel/workqueue.c:3389 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 INFO: task syz.4.287:7910 blocked for more than 144 seconds. Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.287 state:D stack:0 pid:7910 tgid:7889 ppid:6417 flags:0x0000000d Call trace: __switch_to+0x420/0x6dc arch/arm64/kernel/process.c:603 context_switch kernel/sched/core.c:5188 [inline] __schedule+0x13d4/0x2418 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6621 schedule_timeout+0xb8/0x33c kernel/time/timer.c:2557 ___down_common+0x2a4/0x4e0 kernel/locking/semaphore.c:225 __down_common+0xbc/0x454 kernel/locking/semaphore.c:246 __down+0x18/0x24 kernel/locking/semaphore.c:254 down+0x94/0xe8 kernel/locking/semaphore.c:63 console_lock+0x16c/0x1f4 kernel/printk/printk.c:2735 __bch2_print_string_as_lines fs/bcachefs/util.c:267 [inline] bch2_print_string_as_lines+0x2c/0xd4 fs/bcachefs/util.c:286 bch2_print_allocator_stuck+0xc60/0xcf0 fs/bcachefs/alloc_foreground.c:1793 __bch2_wait_on_allocator+0x174/0x23c fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:238 [inline] bch2_btree_update_start+0x11a8/0x15ac fs/bcachefs/btree_update_interior.c:1269 bch2_btree_split_leaf+0x11c/0x734 fs/bcachefs/btree_update_interior.c:1845 bch2_trans_commit_error+0x2a8/0x1150 fs/bcachefs/btree_trans_commit.c:903 __bch2_trans_commit+0x3144/0x5eb8 fs/bcachefs/btree_trans_commit.c:1135 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_logged_op_start+0x19c/0x2c0 fs/bcachefs/logged_ops.c:83 bch2_truncate+0x168/0x274 fs/bcachefs/io_misc.c:291 bchfs_truncate+0x6a4/0xab0 fs/bcachefs/fs-io.c:483 bch2_setattr+0x198/0x230 fs/bcachefs/fs.c:942 notify_change+0x9f0/0xca0 fs/attr.c:503 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3381 [inline] do_open fs/namei.c:3731 [inline] path_openat+0x2388/0x29f8 fs/namei.c:3886 do_filp_open+0x1bc/0x3cc fs/namei.c:3913 do_sys_openat2+0x124/0x1b8 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1442 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Showing all locks held in the system: 3 locks held by kworker/0:1/10: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000975a7c20 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by kworker/u8:0/11: #0: ffff0000c20e6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000975b7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0000f552a0e0 (&type->s_umount_key#85){.+.+}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:562 1 lock held by khungtaskd/31: #0: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:325 2 locks held by kworker/u8:3/44: 3 locks held by kworker/u8:4/127: 4 locks held by kworker/u8:5/1894: 3 locks held by kworker/u8:6/1944: 5 locks held by kworker/u8:7/2084: 3 locks held by kworker/u8:8/2127: 2 locks held by syslogd/6011: 3 locks held by udevd/6026: 2 locks held by getty/6172: #0: ffff0000d30c50a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b50e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 2 locks held by syz-executor/6411: 2 locks held by syz-executor/6415: 3 locks held by kworker/1:4/6468: 2 locks held by kworker/1:5/6470: 3 locks held by kworker/u8:10/6695: 3 locks held by kworker/u8:11/7116: #0: ffff0000d291a148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff80009d3f7c20 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by kworker/u8:12/7117: 3 locks held by kworker/u8:13/7120: 4 locks held by syz-executor/7176: 5 locks held by syz.4.287/7910: #0: ffff0000f552a420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000ccf11768 (&sb->s_type->i_mutex_key#37){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000ccf11768 (&sb->s_type->i_mutex_key#37){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c fs/open.c:63 #2: ffff0000e5a80a18 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x134/0x274 fs/bcachefs/io_misc.c:290 #3: ffff0000e5a842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #4: ffff0000e5aa6690 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 2 locks held by bch-reclaim/loo/7940: 2 locks held by bch-copygc/loop/7946: 1 lock held by syz-executor/8033: 1 lock held by syz.0.348/8313: 4 locks held by kworker/u8:14/8368: #0: ffff0000c0031948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff80009ec67c20 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 #3: ffff0000ef958768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:6014 [inline] #3: ffff0000ef958768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: reg_leave_invalid_chans net/wireless/reg.c:2468 [inline] #3: ffff0000ef958768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: reg_check_chans_work+0x13c/0xe20 net/wireless/reg.c:2483 4 locks held by kworker/u8:16/8371: 2 locks held by syz-executor/8373: 3 locks held by kworker/0:8/8372: 3 locks held by kworker/u8:17/8374: =============================================