INFO: task syz.8.208:7841 blocked for more than 143 seconds. Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.208 state:D stack:16344 pid:7841 tgid:7840 ppid:7113 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5396 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6785 __schedule_loop kernel/sched/core.c:6863 [inline] schedule+0x165/0x360 kernel/sched/core.c:6878 io_schedule+0x81/0xe0 kernel/sched/core.c:7723 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] invalidate_inode_pages2_range+0x557/0xa80 mm/truncate.c:690 bch2_write_invalidate_inode_pages_range+0xc5/0x110 fs/bcachefs/fs-io-pagecache.c:68 bch2_direct_write+0x2a62/0x2ce0 fs/bcachefs/fs-io-direct.c:662 bch2_write_iter+0x18f/0x2b90 fs/bcachefs/fs-io-buffered.c:1064 iter_file_splice_write+0x937/0x1000 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x101/0x160 fs/splice.c:1158 splice_direct_to_actor+0x5a5/0xcc0 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1227 do_sendfile+0x4da/0x7e0 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa6b458e929 RSP: 002b:00007fa6b53fc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa6b47b5fa0 RCX: 00007fa6b458e929 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007fa6b4610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa6b47b5fa0 R15: 00007ffcf95604f8 INFO: task syz.8.208:7885 blocked for more than 144 seconds. Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.208 state:D stack:19512 pid:7885 tgid:7840 ppid:7113 task_flags:0x440040 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5396 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6785 __schedule_loop kernel/sched/core.c:6863 [inline] schedule+0x165/0x360 kernel/sched/core.c:6878 __bch2_two_state_lock+0x1ea/0x370 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline] bch2_readahead+0x94f/0x1100 fs/bcachefs/fs-io-buffered.c:296 read_pages+0x17a/0x580 mm/readahead.c:160 page_cache_ra_order+0xa81/0xc70 mm/readahead.c:515 filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602 filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2990 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4a6/0xcc0 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1227 do_sendfile+0x4da/0x7e0 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa6b458e929 RSP: 002b:00007fa6b53db038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa6b47b6080 RCX: 00007fa6b458e929 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000006 RBP: 00007fa6b4610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000007a680003 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa6b47b6080 R15: 00007ffcf95604f8 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: #0: ffffffff8e1448b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8e1448b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 5 locks held by kworker/u8:0/12: 1 lock held by khungtaskd/31: #0: ffffffff8e13eda0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13eda0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13eda0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 1 lock held by klogd/5183: #0: ffff8880b873b798 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:606 2 locks held by getty/5583: #0: ffff8880345c80a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 1 lock held by syz.8.208/7841: #0: ffff888026cc2428 (sb_writers#22){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160 fs/splice.c:1157 1 lock held by syz.8.208/7885: #0: ffff8880571599b0 (mapping.invalidate_lock#10){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff8880571599b0 (mapping.invalidate_lock#10){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 1 lock held by syz-executor/8419: #0: ffffffff8e1448b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8e1448b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 2 locks held by syz-executor/8992: 2 locks held by kworker/u8:14/9382: #0: ffff88801e30e148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801e30e148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90004dffbc0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90004dffbc0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 1 lock held by syz.3.464/10663: #0: ffffffff8e144780 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570 kernel/rcu/tree.c:3782 1 lock held by syz.2.466/10690: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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:307 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:470 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 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: 10663 Comm: syz.3.464 Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:rb_erase_cached include/linux/rbtree.h:124 [inline] RIP: 0010:timerqueue_del+0x7d/0x100 lib/timerqueue.c:57 Code: 12 65 f6 4c 8d 63 08 4d 89 e7 49 c1 ef 03 43 80 3c 2f 00 74 08 4c 89 e7 e8 00 66 c6 f6 4d 39 34 24 74 07 e8 95 12 65 f6 eb 26 8e 12 65 f6 4c 89 f7 e8 f6 89 ff ff 43 80 3c 2f 00 74 0e 4c 89 RSP: 0018:ffffc90000a08d08 EFLAGS: 00000046 RAX: ffffffff8b5b4886 RBX: ffff8880b8727b90 RCX: ffff888030665a00 RDX: 0000000000010000 RSI: ffffc90003f6fd40 RDI: ffffc9001bc8fd40 RBP: 1ffff920007edfa8 R08: ffffffff8f9fe3f7 R09: 1ffffffff1f3fc7e R10: dffffc0000000000 R11: fffffbfff1f3fc7f R12: ffff8880b8727b98 R13: dffffc0000000000 R14: ffffc90003f6fd40 R15: 1ffff110170e4f73 FS: 00007f8ca28046c0(0000) GS:ffff888125d85000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f86e660758c CR3: 0000000053832000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __remove_hrtimer kernel/time/hrtimer.c:1121 [inline] __run_hrtimer kernel/time/hrtimer.c:1741 [inline] __hrtimer_run_queues+0x364/0xc60 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x45b/0xaa0 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1039 [inline] __sysvec_apic_timer_interrupt+0x10b/0x410 arch/x86/kernel/apic/apic.c:1056 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline] RIP: 0010:vprintk_emit+0x58f/0x7a0 kernel/printk/printk.c:2449 Code: 85 32 01 00 00 e8 b1 61 1f 00 41 89 df 4d 85 f6 48 8b 1c 24 75 07 e8 a0 61 1f 00 eb 06 e8 99 61 1f 00 fb 48 c7 c7 20 30 13 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 b9 36 RSP: 0018:ffffc9000417f800 EFLAGS: 00000293 RAX: ffffffff81a0f9a7 RBX: ffffffff81a0f864 RCX: ffff888030665a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e133020 RBP: ffffc9000417f910 R08: ffffffff8f9fe3f7 R09: 1ffffffff1f3fc7e R10: dffffc0000000000 R11: fffffbfff1f3fc7f R12: dffffc0000000000 R13: 1ffff9200082ff04 R14: 0000000000000200 R15: 0000000000000039 _printk+0xcf/0x120 kernel/printk/printk.c:2475 bch2_fs_get_tree+0x116a/0x14f0 fs/bcachefs/fs.c:2592 vfs_get_tree+0x92/0x2b0 fs/super.c:1804 do_new_mount+0x24a/0xa40 fs/namespace.c:3885 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4410 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8ca19900ca Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8ca2803e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8ca2803ef0 RCX: 00007f8ca19900ca RDX: 00002000000002c0 RSI: 0000200000000080 RDI: 00007f8ca2803eb0 RBP: 00002000000002c0 R08: 00007f8ca2803ef0 R09: 0000000000000410 R10: 0000000000000410 R11: 0000000000000246 R12: 0000200000000080 R13: 00007f8ca2803eb0 R14: 0000000000005ae3 R15: 0000200000000400