bcachefs (loop0): initializing freespace bcachefs (loop0): done initializing freespace ------------[ cut here ]------------ Looking for class "->lock" with key rcu_pending_init.__key, but found a different class "&p->lock" with the same key WARNING: CPU: 0 PID: 5969 at kernel/locking/lockdep.c:941 look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938 Modules linked in: CPU: 0 UID: 0 PID: 5969 Comm: syz.0.11 Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938 Code: 01 0f 85 8a 00 00 00 c6 05 56 61 25 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 20 c6 2a 8c e8 25 07 81 f5 90 <0f> 0b 90 90 eb 61 90 e8 d8 62 e9 f8 e8 73 04 a1 f5 48 c7 c7 60 c5 RSP: 0018:ffffc9000431c4d0 EFLAGS: 00010046 RAX: f1f6404751d33600 RBX: ffffffff93ef5bd0 RCX: 0000000000080000 RDX: ffffc9000c749000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000431c5e0 R08: ffffffff81817d42 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: ffffe8ffffc84a30 R13: ffffe8ffffc84a30 R14: ffffe8ffffc84a30 R15: ffffffff9a7bd5c0 FS: 00007ffa8148c6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000007340 CR3: 00000000345d0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_lock_class+0x102/0x980 kernel/locking/lockdep.c:1292 __lock_acquire+0xf3/0x2100 kernel/locking/lockdep.c:5103 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] rcu_pending_pcpu_dequeue+0x29/0x2b0 fs/bcachefs/rcu_pending.c:538 bkey_cached_alloc fs/bcachefs/btree_key_cache.c:143 [inline] btree_key_cache_create fs/bcachefs/btree_key_cache.c:222 [inline] btree_key_cache_fill+0x496/0x3840 fs/bcachefs/btree_key_cache.c:319 bch2_btree_path_traverse_cached+0x8b2/0xc60 fs/bcachefs/btree_key_cache.c:381 bch2_btree_path_traverse_one+0x46a/0x2930 fs/bcachefs/btree_iter.c:1179 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline] bch2_btree_iter_peek_slot+0x8c0/0x27c0 fs/bcachefs/btree_iter.c:2784 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:585 [inline] bch2_bkey_get_iter fs/bcachefs/btree_iter.h:599 [inline] bch2_check_discard_freespace_key+0x292/0xeb0 fs/bcachefs/alloc_background.c:1404 try_alloc_bucket fs/bcachefs/alloc_foreground.c:291 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:442 [inline] bch2_bucket_alloc_trans+0x1583/0x2ea0 fs/bcachefs/alloc_foreground.c:574 bch2_bucket_alloc_set_trans+0x57c/0xd60 fs/bcachefs/alloc_foreground.c:730 __open_bucket_add_buckets+0x13e1/0x1e50 fs/bcachefs/alloc_foreground.c:973 open_bucket_add_buckets+0x33a/0x410 fs/bcachefs/alloc_foreground.c:1017 bch2_alloc_sectors_start_trans+0xce9/0x2030 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:322 [inline] bch2_btree_reserve_get+0x657/0x19a0 fs/bcachefs/btree_update_interior.c:532 bch2_btree_update_start+0xe92/0x1540 fs/bcachefs/btree_update_interior.c:1230 bch2_btree_split_leaf+0x121/0x880 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x212/0x1380 fs/bcachefs/btree_trans_commit.c:908 __bch2_trans_commit+0x8105/0x9790 fs/bcachefs/btree_trans_commit.c:1089 bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline] bch2_btree_insert+0x3c1/0x7d0 fs/bcachefs/btree_update.c:668 bch2_initialize_subvolumes+0x478/0x7e0 fs/bcachefs/subvolume.c:671 bch2_fs_initialize+0xc32/0x1610 fs/bcachefs/recovery.c:1158 bch2_fs_start+0x36d/0x610 fs/bcachefs/super.c:1042 bch2_fs_get_tree+0xdb7/0x17a0 fs/bcachefs/fs.c:2203 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 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:0x7ffa8058e58a 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:00007ffa8148be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffa8148bef0 RCX: 00007ffa8058e58a RDX: 0000400000000100 RSI: 0000400000000180 RDI: 00007ffa8148beb0 RBP: 0000400000000100 R08: 00007ffa8148bef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000400000000180 R13: 00007ffa8148beb0 R14: 00000000000059fa R15: 0000400000000480