------------[ cut here ]------------ Looking for class "ck" with key rcu_pending_init.__key, but found a different class "&p->lock" with the same key WARNING: CPU: 0 PID: 8935 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: 8935 Comm: syz.0.286 Not tainted 6.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938 Code: 01 0f 85 8a 00 00 00 c6 05 59 56 25 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 00 c6 2a 8c e8 25 f7 80 f5 90 <0f> 0b 90 90 eb 61 90 e8 18 54 e9 f8 e8 e3 f7 a0 f5 48 c7 c7 40 c5 RSP: 0018:ffffc900038ded10 EFLAGS: 00010046 RAX: b74c4d45073a3f00 RBX: ffffffff93efb4e0 RCX: ffff888026a29e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900038dee20 R08: ffffffff81817d42 R09: 1ffff9200071bd3c R10: dffffc0000000000 R11: fffff5200071bd3d R12: ffffe8ffffc34028 R13: ffffe8ffffc34028 R14: ffffe8ffffc34028 R15: ffffffff9a7bd5c0 FS: 00007f55f89356c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd2a67705a0 CR3: 000000007af6e000 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_has_pending_or_armed fs/bcachefs/rcu_pending.c:592 [inline] rcu_pending_exit+0x13f/0x7a0 fs/bcachefs/rcu_pending.c:610 bch2_fs_btree_key_cache_exit+0x8d1/0x9f0 fs/bcachefs/btree_key_cache.c:778 __bch2_fs_free fs/bcachefs/super.c:569 [inline] bch2_fs_release+0x206/0x7b0 fs/bcachefs/super.c:624 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22f/0x480 lib/kobject.c:737 bch2_fs_alloc fs/bcachefs/super.c:963 [inline] bch2_fs_open+0x1e1d/0x31e0 fs/bcachefs/super.c:2064 bch2_fs_get_tree+0x738/0x17a0 fs/bcachefs/fs.c:2190 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:0x7f55f7b8e90a 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:00007f55f8934e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f55f8934ef0 RCX: 00007f55f7b8e90a RDX: 00004000000000c0 RSI: 0000400000000000 RDI: 00007f55f8934eb0 RBP: 00004000000000c0 R08: 00007f55f8934ef0 R09: 0000000000810000 R10: 0000000000810000 R11: 0000000000000246 R12: 0000400000000000 R13: 00007f55f8934eb0 R14: 000000000000593c R15: 0000400000000280