INFO: task syz.1.17:6665 blocked for more than 143 seconds. Not tainted 6.16.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.17 state:D stack:26984 pid:6665 tgid:6594 ppid:6375 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5401 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6790 __schedule_loop kernel/sched/core.c:6868 [inline] schedule+0x165/0x360 kernel/sched/core.c:6883 io_schedule+0x81/0xe0 kernel/sched/core.c:7728 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] truncate_inode_pages_range+0xa77/0xda0 mm/truncate.c:433 bchfs_fpunch+0x1d8/0x520 fs/bcachefs/fs-io.c:570 bch2_fallocate_dispatch+0x2bc/0x410 fs/bcachefs/fs-io.c:838 vfs_fallocate+0x6a3/0x830 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:368 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:0x7f9c6338e929 RSP: 002b:00007f9c6426e038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f9c635b6080 RCX: 00007f9c6338e929 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 00007f9c63410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9c635b6080 R15: 00007ffcce500ac8 INFO: task syz.1.17:6666 blocked for more than 144 seconds. Not tainted 6.16.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.17 state:D stack:26920 pid:6666 tgid:6594 ppid:6375 task_flags:0x440040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5401 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6790 __schedule_loop kernel/sched/core.c:6868 [inline] schedule+0x165/0x360 kernel/sched/core.c:6883 __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+0xa24/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+0x4a9/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:0x7f9c6338e929 RSP: 002b:00007f9c6424d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f9c635b6160 RCX: 00007f9c6338e929 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f9c63410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f9c635b6160 R15: 00007ffcce500ac8 INFO: task syz.2.30:6873 blocked for more than 144 seconds. Not tainted 6.16.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.30 state:D stack:27144 pid:6873 tgid:6819 ppid:6378 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5401 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6790 __schedule_loop kernel/sched/core.c:6868 [inline] schedule+0x165/0x360 kernel/sched/core.c:6883 io_schedule+0x81/0xe0 kernel/sched/core.c:7728 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] truncate_inode_pages_range+0xa77/0xda0 mm/truncate.c:433 bchfs_fpunch+0x1d8/0x520 fs/bcachefs/fs-io.c:570 bch2_fallocate_dispatch+0x2bc/0x410 fs/bcachefs/fs-io.c:838 vfs_fallocate+0x6a3/0x830 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:368 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:0x7f50d298e929 RSP: 002b:00007f50d3718038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f50d2bb6080 RCX: 00007f50d298e929 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 00007f50d2a10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f50d2bb6080 R15: 00007ffdedef83f8 INFO: task syz.2.30:6875 blocked for more than 145 seconds. Not tainted 6.16.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.30 state:D stack:26920 pid:6875 tgid:6819 ppid:6378 task_flags:0x440040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5401 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6790 __schedule_loop kernel/sched/core.c:6868 [inline] schedule+0x165/0x360 kernel/sched/core.c:6883 __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+0xa24/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+0x4a9/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:0x7f50d298e929 RSP: 002b:00007f50d1bfe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f50d2bb6160 RCX: 00007f50d298e929 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f50d2a10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f50d2bb6160 R15: 00007ffdedef83f8 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8e13ee60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13ee60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13ee60 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 2 locks held by kworker/u8:3/49: #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffff8880b8723f08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39e/0x6d0 kernel/sched/psi.c:987 2 locks held by getty/5593: #0: ffff88803147d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000333b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 7 locks held by kworker/u8:8/6569: #0: ffff88807cc3d948 ((wq_completion)btree_update#34){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88807cc3d948 ((wq_completion)btree_update#34){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc900030e7bc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900030e7bc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffff888056ad81b0 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:206 [inline] #2: ffff888056ad81b0 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0xbe0/0x2310 fs/bcachefs/btree_iter.c:3403 #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220 fs/bcachefs/btree_iter.c:3299 #4: ffff88806564b148 (journal res){.+.+}-{0:0}, at: bch2_journal_res_get+0x6a9/0x8f0 fs/bcachefs/journal.h:406 #5: ffff8880656049d8 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_mem_insert+0x438/0xad0 fs/bcachefs/disk_accounting.c:407 #6: ffffffff8e144978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #6: ffffffff8e144978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 2 locks held by syz.1.17/6665: #0: ffff88802fbd2428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff88802fbd2428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff8880563caed8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff8880563caed8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.1.17/6666: #0: ffff8880563cb078 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff8880563cb078 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.2.30/6873: #0: ffff888033db6428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888033db6428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff88805947e400 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88805947e400 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.2.30/6875: #0: ffff88805947e5a0 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff88805947e5a0 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.0.40/7097: #0: ffff88805896a428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff88805896a428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff8880563cc5a0 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff8880563cc5a0 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.0.40/7100: #0: ffff8880563cc740 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff8880563cc740 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz-executor/7122: #0: ffff8880503540e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff8880503540e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff8880503540e0 (&type->s_umount_key#54){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 #1: ffff888065600278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xf8/0x900 fs/bcachefs/super.c:676 2 locks held by kworker/u8:9/7464: 2 locks held by syz.5.61/7534: #0: ffff88807b53a428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff88807b53a428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff88804a422ed8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88804a422ed8 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.5.61/7536: #0: ffff88804a423078 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff88804a423078 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.7.130/8440: #0: ffff888042e24428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888042e24428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff88804a4208e0 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88804a4208e0 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.7.130/8441: #0: ffff88804a420a80 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff88804a420a80 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.8.151/8726: #0: ffff888055764428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888055764428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff88804a69f330 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88804a69f330 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.8.151/8727: #0: ffff88804a69f4d0 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff88804a69f4d0 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.3.185/9151: #0: ffff88823bfba428 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff88823bfba428 (sb_writers#12){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340 #1: ffff88804a69dc68 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff88804a69dc68 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827 1 lock held by syz.3.185/9152: #0: ffff88804a69de08 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff88804a69de08 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 4 locks held by bch-reclaim/loo/9195: #0: ffff88806564af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0 fs/bcachefs/journal_reclaim.c:767 #1: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505 #2: ffff8880761001b0 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #2: ffff8880761001b0 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #2: ffff8880761001b0 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505 #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x105/0xd30 fs/bcachefs/btree_key_cache.c:543 3 locks held by bch-rebalance/l/9197: #0: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #0: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #0: ffff888065604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505 #1: ffff8880651f81b0 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:206 [inline] #1: ffff8880651f81b0 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0xbe0/0x2310 fs/bcachefs/btree_iter.c:3403 #2: ffff88806561e038 (&wp->lock){+.+.}-{4:4}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #2: ffff88806561e038 (&wp->lock){+.+.}-{4:4}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1158 [inline] #2: ffff88806561e038 (&wp->lock){+.+.}-{4:4}, at: bch2_alloc_sectors_start_trans+0x47a/0x1e80 fs/bcachefs/alloc_foreground.c:1272 1 lock held by dhcpcd/9201: #0: ffff88807e99b808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #0: ffff88807e99b808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release net/socket.c:646 [inline] #0: ffff88807e99b808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: sock_close+0x9b/0x240 net/socket.c:1391 2 locks held by dhcpcd/9202: #0: ffff888056075c08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #0: ffff888056075c08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release net/socket.c:646 [inline] #0: ffff888056075c08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: sock_close+0x9b/0x240 net/socket.c:1391 #1: ffffffff8e144978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #1: ffffffff8e144978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 2 locks held by syz.9.192/9204: #0: ffff8880b3000920 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_alloc fs/bcachefs/super.c:917 [inline] #0: ffff8880b3000920 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_open+0x11e5/0x2600 fs/bcachefs/super.c:2433 #1: ffff8880b30049d8 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x117/0x1a0 fs/bcachefs/replicas.c:600 2 locks held by syz.1.198/9210: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller #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+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 6645 Comm: udevd Not tainted 6.16.0-rc5-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] RIP: 0010:rcu_is_watching+0x5e/0xb0 kernel/rcu/tree.c:745 Code: 03 42 80 3c 38 00 74 08 4c 89 f7 e8 ec 5d 7a 00 48 c7 c3 58 1f 9e 92 49 03 1e 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 34 <8b> 03 65 ff 0d 29 d1 f5 10 74 11 83 e0 04 c1 e8 02 5b 41 5e 41 5f RSP: 0018:ffffc900041cf9a0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8880b8632f58 RCX: dbbbf2e9b906b500 RDX: ffff88801f318000 RSI: ffffffff8be1c1e0 RDI: ffffffff8be1c1a0 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff82382317 R10: dffffc0000000000 R11: ffffed1006729876 R12: 1ffff92000839f4c R13: ffff88803394c2f0 R14: ffffffff8dba8c60 R15: dffffc0000000000 FS: 00007f89c173f880(0000) GS:ffff888125c51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f89c0fab000 CR3: 000000002a2a6000 CR4: 00000000003526f0 Call Trace: rcu_read_lock include/linux/rcupdate.h:842 [inline] dput+0x70/0x2b0 fs/dcache.c:904 step_into+0x34d/0xf30 fs/namei.c:1991 walk_component fs/namei.c:2144 [inline] link_path_walk+0x77b/0xea0 fs/namei.c:2506 path_parentat fs/namei.c:2710 [inline] __filename_parentat+0x246/0x670 fs/namei.c:2734 filename_parentat fs/namei.c:2752 [inline] do_rmdir+0xcc/0x630 fs/namei.c:4497 __do_sys_rmdir fs/namei.c:4544 [inline] __se_sys_rmdir fs/namei.c:4542 [inline] __x64_sys_rmdir+0x47/0x50 fs/namei.c:4542 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:0x7f89c1115407 Code: f0 ff ff 73 01 c3 48 8b 0d ee b9 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 54 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 c1 b9 0d 00 f7 d8 64 89 02 b8 RSP: 002b:00007ffe43738e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007ffe43738ec0 RCX: 00007f89c1115407 RDX: 0000000000000000 RSI: 00000000000007ce RDI: 00007ffe437392c0 RBP: 00005635c11cfb60 R08: 00005635c11b22e0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00005635c11c6840 R13: 00007ffe43739ac0 R14: 0000000000000000 R15: 00007ffe437392c0