------------[ 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: 7096 at kernel/locking/lockdep.c:939 look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 Modules linked in: CPU: 1 UID: 0 PID: 7096 Comm: syz.2.104 Tainted: G W 6.13.0-rc6-syzkaller-g6251d1776bc5 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 lr : look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 sp : ffff80009e4453e0 x29: ffff80009e4453e0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff8000974df900 x25: ffff8000974df000 x24: 0000000000000001 x23: 0000000000000000 x22: 1ffff00011f340ca x21: ffff800097686dc0 x20: fffffdffbf757a60 x19: ffff80009302f780 x18: 0000000000000008 x17: 0000000000000000 x16: ffff8000832776d4 x15: 0000000000000001 x14: 1fffe00036700eea x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000003 x10: 0000000000ff0100 x9 : b78c08ae7e746200 x8 : b78c08ae7e746200 x7 : 0000000000000001 x6 : ffff8000804a69fc x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008073e590 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 (P) register_lock_class+0x8c/0x6b4 kernel/locking/lockdep.c:1290 __lock_acquire+0x18c/0x7904 kernel/locking/lockdep.c:5101 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] rcu_pending_pcpu_dequeue+0x38/0x23c fs/bcachefs/rcu_pending.c:522 rcu_pending_dequeue+0x44/0x54 fs/bcachefs/rcu_pending.c:552 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+0x334/0x1e18 fs/bcachefs/btree_key_cache.c:309 bch2_btree_path_traverse_cached+0x5e4/0x900 fs/bcachefs/btree_key_cache.c:361 bch2_btree_path_traverse_one+0x364/0x2b30 fs/bcachefs/btree_iter.c:1159 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline] bch2_trans_update_get_key_cache+0x528/0xf14 fs/bcachefs/btree_update.c:494 bch2_trans_update+0x74c/0x1c70 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+0x2a50/0x48f4 fs/bcachefs/btree_gc.c:1139 bch2_run_recovery_pass+0xe4/0x1d4 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x30c/0x73c fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x32d8/0x55dc fs/bcachefs/recovery.c:861 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 73218 hardirqs last enabled at (73217): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (73218): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (73218): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (73102): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (73102): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (73029): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]--- done bcachefs (loop2): going read-write bcachefs (loop2): done starting filesystem