INFO: task syz.3.4:5965 blocked for more than 143 seconds. Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.4 state:D stack:18320 pid:5965 tgid:5920 ppid:5843 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_write_slowpath+0xedd/0x1420 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1da/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] do_truncate+0x20e/0x310 fs/open.c:63 vfs_truncate+0x4a6/0x540 fs/open.c:115 do_sys_truncate+0xd8/0x190 fs/open.c:138 __do_sys_truncate fs/open.c:150 [inline] __se_sys_truncate fs/open.c:148 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:148 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fde2fd8e169 RSP: 002b:00007fde30c91038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fde2ffb6080 RCX: 00007fde2fd8e169 RDX: 0000000000000000 RSI: 000000000000b73d RDI: 0000200000000900 RBP: 00007fde2fe10a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fde2ffb6080 R15: 00007ffcb90aac18 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 2 locks held by kworker/u8:6/1094: 2 locks held by getty/5588: #0: ffff88814e3d60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036db2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 1 lock held by syz-executor/5838: #0: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 2 locks held by syz.3.4/5965: #0: ffff88807cae8420 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff88805ba788e0 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff88805ba788e0 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63 2 locks held by syz.3.4/5967: #0: ffff88807cae8420 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff88805ba788e0 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff88805ba788e0 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63 2 locks held by bch-copygc/loop/5960: 2 locks held by syz.4.98/6846: #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2653 [inline] #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x330/0xb50 fs/fs-writeback.c:2836 2 locks held by syz.8.138/7356: #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2653 [inline] #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x330/0xb50 fs/fs-writeback.c:2836 2 locks held by syz.0.185/7855: #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807cae80e0 (&type->s_umount_key#74){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2653 [inline] #1: ffff88807cae8948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x330/0xb50 fs/fs-writeback.c:2836 1 lock held by syz.7.207/8106: 2 locks held by dhcpcd-run-hook/8123: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 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: 5960 Comm: bch-copygc/loop Not tainted 6.15.0-rc2-syzkaller-00257-gb5c6891b2c5b #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:96 [inline] RIP: 0010:__bch2_bkey_cmp_packed_format_checked+0xea/0x800 fs/bcachefs/bkey.c:1020 Code: 01 00 00 00 89 de e8 c5 45 76 fd 80 fb 02 0f 83 e2 06 00 00 0f b6 f3 bf 01 00 00 00 e8 af 45 76 fd 80 fb 01 0f 84 d4 06 00 00 <49> 8d 5e 01 48 89 d8 48 c1 e8 03 48 89 44 24 30 42 0f b6 04 20 84 RSP: 0018:ffffc9000a9fe9a0 EFLAGS: 00000297 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888027ce0000 RDX: ffff888027ce0000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc9000a9fead0 R08: ffffffff844c7751 R09: ffffffff844e0664 R10: 0000000000000002 R11: ffff888027ce0000 R12: dffffc0000000000 R13: 1ffff9200153fd3c R14: ffffc9000a9fec20 R15: ffff88807b588000 FS: 0000000000000000(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561cf5ddb000 CR3: 0000000033838000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bkey_cmp_p_or_unp fs/bcachefs/bset.h:291 [inline] bkey_iter_cmp_p_or_unp fs/bcachefs/bset.h:400 [inline] bch2_bset_search_linear fs/bcachefs/bset.c:1189 [inline] bch2_btree_node_iter_init+0x23a1/0x42e0 fs/bcachefs/bset.c:1334 __btree_path_level_init fs/bcachefs/btree_iter.c:603 [inline] bch2_btree_path_level_init+0x4e4/0xa00 fs/bcachefs/btree_iter.c:623 btree_path_lock_root fs/bcachefs/btree_iter.c:773 [inline] bch2_btree_path_traverse_one+0x10af/0x2970 fs/bcachefs/btree_iter.c:1189 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:248 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2243 [inline] bch2_btree_iter_peek_max+0xb9b/0x61a0 fs/bcachefs/btree_iter.c:2347 bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:702 [inline] bch2_copygc_get_buckets fs/bcachefs/movinggc.c:169 [inline] bch2_copygc+0x8e5/0x4db0 fs/bcachefs/movinggc.c:221 bch2_copygc_thread+0x705/0xc00 fs/bcachefs/movinggc.c:398 kthread+0x7b7/0x940 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