------------[ cut here ]------------ Looking for class "p->lock" with key rcu_pending_init.__key, but found a different class "&p->lock" with the same key WARNING: CPU: 1 PID: 8715 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: 8715 Comm: syz.0.319 Not tainted 6.12.0-rc7-syzkaller-g8e9a54d7181b #0 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 : ffff8000a23f6dc0 x29: ffff8000a23f6dc0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff8000973368c0 x25: ffff800097336000 x24: 0000000000000001 x23: 0000000000000000 x22: 1ffff00011f020ba x21: ffff8000974dd7a0 x20: fffffdffbf78f838 x19: ffff800092e9fd80 x18: 0000000000000008 x17: 747562202c79656b x16: ffff8000830ce3b0 x15: 0000000000000001 x14: 1fffe000366cb4e2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003ffff x9 : a9fd88ce07645e00 x8 : a9fd88ce07645e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a23f64f8 x4 : ffff80008f8fd220 x3 : ffff800080626cb0 x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 (P) look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:936 (L) register_lock_class+0x8c/0x6b4 kernel/locking/lockdep.c:1290 __lock_acquire+0x18c/0x77c8 kernel/locking/lockdep.c:5077 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 __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_has_pending_or_armed fs/bcachefs/rcu_pending.c:576 [inline] rcu_pending_exit+0x124/0x660 fs/bcachefs/rcu_pending.c:594 bch2_fs_btree_key_cache_exit+0x7ec/0x8f4 fs/bcachefs/btree_key_cache.c:742 __bch2_fs_free fs/bcachefs/super.c:555 [inline] bch2_fs_release+0x1fc/0x728 fs/bcachefs/super.c:610 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2a8/0x41c lib/kobject.c:737 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:672 bch2_fs_stop+0x28/0x38 fs/bcachefs/super.c:678 bch2_fs_get_tree+0xab0/0x1030 fs/bcachefs/fs.c:2265 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: 87096 hardirqs last enabled at (87095): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (87095): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (87096): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (87096): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (86516): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (86516): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (86375): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- bcachefs: bch2_fs_get_tree() error: erofs_norecovery