INFO: task syz.4.38:7114 [ 389.317940][ T39] INFO: task syz.4.38:7114 blocked for more than 143 seconds. Tainted: G W 6.16.0-syzkaller-03997-g909d2bb07dc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.38 state:D stack:17448 pid:7114 tgid:7113 ppid:6613 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x165b/0x4c50 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] rt_mutex_schedule+0x77/0xf0 kernel/sched/core.c:7160 rt_mutex_slowlock_block kernel/locking/rtmutex.c:1647 [inline] __rt_mutex_slowlock kernel/locking/rtmutex.c:1721 [inline] __rt_mutex_slowlock_locked+0x1e04/0x25e0 kernel/locking/rtmutex.c:1760 rt_mutex_slowlock+0xb5/0x160 kernel/locking/rtmutex.c:1800 __rt_mutex_lock kernel/locking/rtmutex.c:1815 [inline] rwbase_write_lock+0x14f/0x750 kernel/locking/rwbase_rt.c:244 inode_lock include/linux/fs.h:869 [inline] bch2_direct_write+0x19b/0x2cf0 fs/bcachefs/fs-io-direct.c:613 bch2_write_iter+0x192/0x2ba0 fs/bcachefs/fs-io-buffered.c:1064 iter_file_splice_write+0x93f/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+0x5b0/0xcd0 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x187/0x270 fs/splice.c:1227 do_sendfile+0x4ec/0x7f0 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:0x7f038057d169 RSP: 002b:00007f037f7e6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f0380795fa0 RCX: 00007f038057d169 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006 RBP: 00007f03805fe2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000fffa83 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0380795fa0 R15: 00007ffc309fe608 INFO: task syz.4.38:7151 blocked for more than 143 seconds. Tainted: G W 6.16.0-syzkaller-03997-g909d2bb07dc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.38 state:D stack:26760 pid:7151 tgid:7113 ppid:6613 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x165b/0x4c50 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 io_schedule+0x81/0xe0 kernel/sched/core.c:7724 folio_wait_bit_common+0x6b5/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1141 [inline] invalidate_inode_pages2_range+0x55a/0xa80 mm/truncate.c:690 bch2_write_invalidate_inode_pages_range+0xc5/0x110 fs/bcachefs/fs-io-pagecache.c:68 bch2_direct_write+0x2a6d/0x2cf0 fs/bcachefs/fs-io-direct.c:662 bch2_write_iter+0x192/0x2ba0 fs/bcachefs/fs-io-buffered.c:1064 do_iter_readv_writev+0x580/0x800 fs/read_write.c:-1 vfs_writev+0x323/0x970 fs/read_write.c:1057 do_writev+0x153/0x2d0 fs/read_write.c:1103 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:0x7f038057d169 RSP: 002b:00007f037f7c5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f0380796080 RCX: 00007f038057d169 RDX: 0000000000000001 RSI: 0000400000000140 RDI: 0000000000000007 RBP: 00007f03805fe2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0380796080 R15: 00007ffc309fe608 INFO: task syz.4.38:7155 blocked for more than 143 seconds. Tainted: G W 6.16.0-syzkaller-03997-g909d2bb07dc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.38 state:D stack:27592 pid:7155 tgid:7113 ppid:6613 task_flags:0x440040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x165b/0x4c50 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 __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_unbounded+0x63b/0x740 mm/readahead.c:297 filemap_get_pages+0x443/0x1df0 mm/filemap.c:2602 filemap_splice_read+0x502/0xbd0 mm/filemap.c:2990 do_splice_read fs/splice.c:979 [inline] splice_file_to_pipe+0x27c/0x450 fs/splice.c:1289 do_sendfile+0x487/0x7f0 fs/read_write.c:1376 __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:0x7f038057d169 RSP: 002b:00007f037f7a4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f0380796160 RCX: 00007f038057d169 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: 00007f03805fe2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000002ab R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f0380796160 R15: 00007ffc309fe608 Showing all locks held in the system: 1 lock held by khungtaskd/39: #0: ffffffff8d7aa380 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8d7aa380 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8d7aa380 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 3 locks held by kworker/u8:3/57: 2 locks held by getty/5574: #0: ffff88823bf9c8a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90003e932e0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x444/0x1410 drivers/tty/n_tty.c:2222 1 lock held by syz-executor/6264: #0: ffff88805b1d1858 (&pipe->mutex){+.+.}-{4:4}, at: pipe_release+0x4e/0x330 fs/pipe.c:727 2 locks held by syz.4.38/7114: #0: ffff888029132488 (sb_writers#12){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160 fs/splice.c:1157 #1: ffff88805cfdbb38 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88805cfdbb38 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_direct_write+0x19b/0x2cf0 fs/bcachefs/fs-io-direct.c:613 3 locks held by syz.4.38/7151: #0: ffff88803924af28 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x253/0x320 fs/file.c:1232 #1: ffff888029132488 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3105 [inline] #1: ffff888029132488 (sb_writers#12){.+.+}-{0:0}, at: vfs_writev+0x28e/0x970 fs/read_write.c:1055 #2: ffff88805cfdbb38 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #2: ffff88805cfdbb38 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_direct_write+0x19b/0x2cf0 fs/bcachefs/fs-io-direct.c:613 2 locks held by syz.4.38/7155: #0: ffff88805b1d1858 (&pipe->mutex){+.+.}-{4:4}, at: splice_file_to_pipe+0x2e/0x450 fs/splice.c:1286 #1: ffff88805cfdbd08 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #1: ffff88805cfdbd08 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_unbounded+0xf4/0x740 mm/readahead.c:228 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 39 Comm: khungtaskd Tainted: G W 6.16.0-syzkaller-03997-g909d2bb07dc0 #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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+0xe9e/0xee0 kernel/hung_task.c:470 kthread+0x711/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: 57 Comm: kworker/u8:3 Tainted: G W 6.16.0-syzkaller-03997-g909d2bb07dc0 #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: bat_events batadv_nc_worker RIP: 0010:hlock_class kernel/locking/lockdep.c:234 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4882 [inline] RIP: 0010:__lock_acquire+0x50c/0xd20 kernel/locking/lockdep.c:5190 Code: 49 83 c7 28 41 89 c4 48 39 cb 0f 8d d6 00 00 00 48 83 fb 31 0f 83 92 00 00 00 41 8b 07 25 ff 1f 00 00 48 0f a3 05 d4 58 3b 11 <73> 10 48 69 c0 c8 00 00 00 48 8d 88 d0 82 78 92 eb 40 83 3d 7b e8 RSP: 0018:ffffc9000123f750 EFLAGS: 00000003 RAX: 000000000000000b RBX: 0000000000000005 RCX: 0000000000000006 RDX: 0000000000000003 RSI: 0000000000000003 RDI: ffff888019f0bb80 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8abc3834 R10: dffffc0000000000 R11: fffffbfff1df47bf R12: 0000000000000003 R13: 0000000000000003 R14: ffff888019f0c788 R15: ffff888019f0c780 FS: 0000000000000000(0000) GS:ffff888126c22000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559bd067b168 CR3: 000000000d5a6000 CR4: 00000000003526f0 Call Trace: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5871 rt_spin_lock+0x88/0x2c0 kernel/locking/spinlock_rt.c:56 spin_lock_bh include/linux/spinlock_rt.h:88 [inline] batadv_nc_purge_paths+0x104/0x3f0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x8c8/0xbc0 net/batman-adv/network-coding.c:722 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x711/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