bcachefs (loop1): snapshots_read... done bcachefs (loop1): journal_replay... done bcachefs (loop1): resume_logged_ops... done bcachefs (loop1): reading quotas ============================= WARNING: suspicious RCU usage 6.9.0-rc6-syzkaller-00234-g7367539ad4b0 #0 Not tainted ----------------------------- fs/bcachefs/snapshot.h:45 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 4 locks held by syz-executor.1/6489: #0: ffff888066a00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 fs/bcachefs/super.c:1013 #1: ffff888066a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #1: ffff888066a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #1: ffff888066a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x8c8/0xc90 fs/bcachefs/btree_iter.c:3069 #2: ffff88807aca8070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #2: ffff88807aca8070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline] #2: ffff88807aca8070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:760 [inline] #2: ffff88807aca8070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa85/0x3250 fs/bcachefs/btree_iter.c:1178 #3: ffff88807b421870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #3: ffff88807b421870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline] #3: ffff88807b421870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:760 [inline] #3: ffff88807b421870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa85/0x3250 fs/bcachefs/btree_iter.c:1178 stack backtrace: CPU: 0 PID: 6489 Comm: syz-executor.1 Not tainted 6.9.0-rc6-syzkaller-00234-g7367539ad4b0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 lockdep_rcu_suspicious+0x221/0x340 kernel/locking/lockdep.c:6712 snapshot_t fs/bcachefs/snapshot.h:45 [inline] bch2_fs_quota_read_inode fs/bcachefs/quota.c:567 [inline] bch2_fs_quota_read+0x195e/0x2770 fs/bcachefs/quota.c:613 bch2_fs_recovery+0x4b25/0x6390 fs/bcachefs/recovery.c:828 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1043 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2102 bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1903 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2a0 fs/super.c:1779 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1ea767f3aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1ea8427ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1ea8427f80 RCX: 00007f1ea767f3aa RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007f1ea8427f40 RBP: 0000000020011a00 R08: 00007f1ea8427f80 R09: 0000000001200014 R10: 0000000001200014 R11: 0000000000000202 R12: 0000000020011a40 R13: 00007f1ea8427f40 R14: 00000000000119fb R15: 0000000020000100 bcachefs (loop1): bch2_fs_quota_read_inode: snapshot tree 0 not found bcachefs (loop1): inconsistency detected - emergency read only at journal seq 10 bcachefs (loop1): bch2_fs_quota_read(): error ENOENT_snapshot_tree bcachefs (loop1): bch2_fs_recovery(): error ENOENT_snapshot_tree bcachefs (loop1): bch2_fs_start(): error starting filesystem ENOENT_snapshot_tree bcachefs (loop1): shutting down bcachefs (loop1): shutdown complete