------------[ 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: 6437 at kernel/locking/lockdep.c:941 look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 UID: 0 PID: 6437 Comm: syz-executor Not tainted 6.14.0-rc6-syzkaller-g78e3fd2b7e4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:938 lr : look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:938 sp : ffff8000a20373e0 x29: ffff8000a20373e0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff800097799900 x25: ffff800097799000 x24: 0000000000000001 x23: 0000000000000000 x22: 1ffff00011f780cb x21: ffff800097940820 x20: fffffdffbf70a020 x19: ffff8000932db5b8 x18: 0000000000000008 x17: 6f6620747562202c x16: ffff80008b72c72c x15: ffff700011f87b38 x14: 1ffff00011f87b38 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000003 x10: 0000000000ff0100 x9 : d6ae594adceac200 x8 : d6ae594adceac200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a2036b98 x4 : ffff80008fcaf7c0 x3 : ffff8000804a6bd8 x2 : 0000000000000000 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:938 (P) register_lock_class+0x8c/0x6b4 kernel/locking/lockdep.c:1292 __lock_acquire+0x18c/0x7904 kernel/locking/lockdep.c:5103 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5851 __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:592 [inline] rcu_pending_exit+0x124/0x660 fs/bcachefs/rcu_pending.c:610 bch2_fs_btree_key_cache_exit+0x754/0x85c fs/bcachefs/btree_key_cache.c:778 __bch2_fs_free fs/bcachefs/super.c:569 [inline] bch2_fs_release+0x1fc/0x708 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+0x2a8/0x41c lib/kobject.c:737 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:686 bch2_kill_sb+0x48/0x58 fs/bcachefs/fs.c:2313 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1413 __cleanup_mnt+0x20/0x30 fs/namespace.c:1420 task_work_run+0x230/0x2e0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 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: 833860 hardirqs last enabled at (833859): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (833859): [] _raw_spin_unlock_irq+0x30/0x80 kernel/locking/spinlock.c:202 hardirqs last disabled at (833860): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (833860): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (832518): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (832518): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (832467): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]---