INFO: task syz.0.576:11167 blocked for more than 143 seconds. Not tainted 6.10.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.576 state:D stack:19648 pid:11167 tgid:11165 ppid:10750 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x49d0 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 io_schedule+0x8d/0x110 kernel/sched/core.c:9043 folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1307 __filemap_get_folio+0xb7/0xc10 mm/filemap.c:1898 filemap_lock_folio include/linux/pagemap.h:683 [inline] __bch2_truncate_folio+0x14e/0x1d80 fs/bcachefs/fs-io.c:257 bch2_truncate_folios fs/bcachefs/fs-io.c:366 [inline] bchfs_fallocate fs/bcachefs/fs-io.c:724 [inline] bch2_fallocate_dispatch+0x9a9/0x3810 fs/bcachefs/fs-io.c:783 vfs_fallocate+0x564/0x6c0 fs/open.c:330 ksys_fallocate fs/open.c:353 [inline] __do_sys_fallocate fs/open.c:361 [inline] __se_sys_fallocate fs/open.c:359 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:359 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0771375b99 RSP: 002b:00007f0772106048 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f0771503fa0 RCX: 00007f0771375b99 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004 RBP: 00007f07713f677e R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fffd R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0771503fa0 R15: 00007ffe48e9bd08 INFO: task syz.0.576:11213 blocked for more than 143 seconds. Not tainted 6.10.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.576 state:D stack:25264 pid:11213 tgid:11165 ppid:10750 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x49d0 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 __bch2_two_state_lock+0x171/0x200 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:56 [inline] bch2_readahead+0xcad/0x1860 fs/bcachefs/fs-io-buffered.c:269 read_pages+0x17e/0x840 mm/readahead.c:160 page_cache_ra_order+0xa9f/0xd00 mm/readahead.c:535 page_cache_sync_readahead include/linux/pagemap.h:1306 [inline] filemap_get_pages+0x49d/0x2090 mm/filemap.c:2529 filemap_splice_read+0x654/0xeb0 mm/filemap.c:2894 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x4b7/0xc90 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x28c/0x3e0 fs/splice.c:1233 do_sendfile+0x56d/0xe10 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0771375b99 RSP: 002b:00007f07720e5048 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f0771504078 RCX: 00007f0771375b99 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 RBP: 00007f07713f677e R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f0771504078 R15: 00007ffe48e9bd08 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333f20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4832: #0: ffff88802abd60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 2 locks held by syz.0.576/11167: #0: ffff8880247d8420 (sb_writers#16){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2854 [inline] #0: ffff8880247d8420 (sb_writers#16){.+.+}-{0:0}, at: vfs_fallocate+0x4d3/0x6c0 fs/open.c:329 #1: ffff88807ebde900 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff88807ebde900 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: bch2_fallocate_dispatch+0x295/0x3810 fs/bcachefs/fs-io.c:774 1 lock held by syz.0.576/11213: #0: ffff88807ebdeaa0 (mapping.invalidate_lock#14){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:846 [inline] #0: ffff88807ebdeaa0 (mapping.invalidate_lock#14){.+.+}-{3:3}, at: page_cache_ra_order+0x3e1/0xd00 mm/readahead.c:514 2 locks held by syz.4.938/13478: 3 locks held by syz.2.941/13490: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:103 [inline] RIP: 0010:lock_acquire+0x180/0x550 kernel/locking/lockdep.c:5750 Code: 8d bc 24 80 00 00 00 4c 89 fb 48 c1 eb 03 42 80 3c 2b 00 74 08 4c 89 ff e8 bd 2b 86 00 48 c7 84 24 80 00 00 00 00 00 00 00 9c <8f> 84 24 80 00 00 00 42 80 3c 2b 00 74 08 4c 89 ff e8 aa 2a 86 00 RSP: 0018:ffffc900001079d8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff92000020f4c RCX: ffffffff817266e4 RDX: 0000000000000000 RSI: ffffffff8c1f16a0 RDI: ffffffff8c1f1660 RBP: ffffc90000107b40 R08: ffffffff8fac23af R09: 1ffffffff1f58475 R10: dffffc0000000000 R11: fffffbfff1f58476 R12: 1ffff92000020f44 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc90000107a60 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa078319d58 CR3: 0000000021e36000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3248 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3329 worker_thread+0x86d/0xd50 kernel/workqueue.c:3409 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244