INFO: task syz-executor119:5836 blocked for more than 143 seconds. Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor119 state:D stack:21192 pid:5836 tgid:5836 ppid:5834 task_flags:0x440140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x168f/0x4c70 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x165/0x360 kernel/sched/core.c:6860 __closure_sync+0x163/0x220 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:256 [inline] __bch2_write+0x324b/0x39b0 fs/bcachefs/io_write.c:1554 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:494 [inline] bch2_writepages+0x269/0x360 fs/bcachefs/fs-io-buffered.c:677 do_writepages+0x3ae/0x7b0 mm/page-writeback.c:2656 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] file_write_and_wait_range+0x22c/0x330 mm/filemap.c:794 bch2_fsync+0x127/0x330 fs/bcachefs/fs-io.c:228 generic_write_sync include/linux/fs.h:2976 [inline] bch2_write_iter+0x2822/0x2b90 fs/bcachefs/fs-io-buffered.c:1097 do_iter_readv_writev+0x56b/0x7f0 fs/read_write.c:-1 vfs_writev+0x306/0x9a0 fs/read_write.c:1055 do_pwritev fs/read_write.c:1151 [inline] __do_sys_pwritev2 fs/read_write.c:1209 [inline] __se_sys_pwritev2+0x179/0x290 fs/read_write.c:1200 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1e6f028e49 RSP: 002b:00007ffc16033868 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 0000200000000040 RCX: 00007f1e6f028e49 RDX: 0000000000000001 RSI: 00002000000001c0 RDI: 0000000000000004 RBP: 00000000000016cb R08: 0000000000000008 R09: 0000000000000000 R10: 0000000000004e7d R11: 0000000000000246 R12: 00007ffc160338c0 R13: 00007ffc160339a0 R14: 431bde82d7b634db R15: 00007f1e6f07201d Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764 2 locks held by getty/5575: #0: ffff888030a940a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002ffe2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 1 lock held by syz-executor119/5836: #0: ffff88806c8a2420 (sb_writers#9){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff88806c8a2420 (sb_writers#9){.+.+}-{0:0}, at: vfs_writev+0x274/0x9a0 fs/read_write.c:1053 2 locks held by bch-copygc/loop/5846: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:437 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 5846 Comm: bch-copygc/loop Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:do_raw_spin_lock+0x0/0x290 kernel/locking/spinlock_debug.c:114 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 7c 90 48 89 df e8 05 df 80 00 eb 86 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900042ef3b8 EFLAGS: 00000096 RAX: 38baba9dc830c300 RBX: ffff88807604ed20 RCX: 38baba9dc830c300 RDX: 0000000000000000 RSI: ffffffff8d91f812 RDI: ffff88807604ed20 RBP: ffffc900042ef448 R08: 0000000000000000 R09: 0000000000080000 R10: 0000000000000000 R11: ffffffff844b2735 R12: dffffc0000000000 R13: 000000000000000d R14: 0000000000000a06 R15: 1ffff9200085de78 FS: 0000000000000000(0000) GS:ffff888126202000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcdbbf52e8 CR3: 000000000dd36000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0xb3/0xf0 kernel/locking/spinlock.c:162 __bch2_time_stats_update+0x55/0x390 fs/bcachefs/time_stats.c:130 bch2_trans_begin+0x7bf/0x1f10 fs/bcachefs/btree_iter.c:3256 bch2_copygc_get_buckets fs/bcachefs/movinggc.c:169 [inline] bch2_copygc+0x50b/0x3cf0 fs/bcachefs/movinggc.c:221 bch2_copygc_thread+0x8c9/0xd40 fs/bcachefs/movinggc.c:405 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245