------------[ 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: 1 PID: 9393 at kernel/locking/lockdep.c:939 look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:936 Modules linked in: CPU: 1 UID: 0 PID: 9393 Comm: syz.6.362 Not tainted 6.13.0-rc3-syzkaller-00082-gbaaa2567a712 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:936 Code: 01 0f 85 8a 00 00 00 c6 05 43 e7 41 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 e0 b8 0a 8c e8 d5 76 9f f5 90 <0f> 0b 90 90 eb 61 90 e8 e8 2f f6 f8 e8 93 d8 be f5 48 c7 c7 20 b8 RSP: 0018:ffffc9000ca05870 EFLAGS: 00010046 RAX: 2649db96aa0dc500 RBX: ffffffff93c53950 RCX: 0000000000080000 RDX: ffffc9000ced9000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000ca05980 R08: ffffffff81601962 R09: 1ffff110170e519a R10: dffffc0000000000 R11: ffffed10170e519b R12: ffffe8ffffd6e528 R13: ffffe8ffffd6e528 R14: ffffe8ffffd6e528 R15: ffffffff9a51cd20 FS: 00007fb0d88006c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffced915c5c CR3: 0000000027d0c000 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:1290 __lock_acquire+0xf3/0x2100 kernel/locking/lockdep.c:5101 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __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:522 bkey_cached_alloc fs/bcachefs/btree_key_cache.c:143 [inline] btree_key_cache_create fs/bcachefs/btree_key_cache.c:220 [inline] btree_key_cache_fill+0x43a/0x2920 fs/bcachefs/btree_key_cache.c:309 bch2_btree_path_traverse_cached+0x84e/0xbe0 fs/bcachefs/btree_key_cache.c:361 bch2_btree_path_traverse_one+0x45d/0x2940 fs/bcachefs/btree_iter.c:1159 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline] bch2_trans_update_get_key_cache+0x6c0/0x1220 fs/bcachefs/btree_update.c:494 bch2_trans_update+0x9b1/0x2550 fs/bcachefs/btree_update.c:539 bch2_alloc_write_key fs/bcachefs/btree_gc.c:887 [inline] bch2_gc_alloc_done fs/bcachefs/btree_gc.c:897 [inline] bch2_check_allocations+0x4344/0x7070 fs/bcachefs/btree_gc.c:1139 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x3a7/0x880 fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x25cc/0x39d0 fs/bcachefs/recovery.c:861 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034 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:0x7fb0d79874ca 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:00007fb0d87ffe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fb0d87ffef0 RCX: 00007fb0d79874ca RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007fb0d87ffeb0 RBP: 00000000200000c0 R08: 00007fb0d87ffef0 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000000 R13: 00007fb0d87ffeb0 R14: 00000000000059b5 R15: 00000000200002c0