------------[ 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: 7097 at kernel/locking/lockdep.c:944 look_up_lock_class+0xf0/0x168 kernel/locking/lockdep.c:941 Modules linked in: CPU: 1 UID: 0 PID: 7097 Comm: syz-executor Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT 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+0xf0/0x168 kernel/locking/lockdep.c:941 lr : look_up_lock_class+0xf0/0x168 kernel/locking/lockdep.c:941 sp : ffff80009cbf76b0 x29: ffff80009cbf76b0 x28: 0000000000000000 x27: fffffdffbf654220 x26: ffff8000829e547c x25: 0000000000000000 x24: 0000000000000000 x23: ffff800096f71000 x22: 0000000000000000 x21: ffff800097118be0 x20: fffffdffbf654220 x19: ffff800092bd2f08 x18: 1fffe0003386f276 x17: 6f6620747562202c x16: ffff80008ad27e48 x15: ffff700011e740c0 x14: 1ffff00011e740c0 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011e740c0 x10: 0000000000ff0100 x9 : d79583ded44ebc00 x8 : d79583ded44ebc00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009cbf6ff8 x4 : ffff80008f415ba0 x3 : ffff800080548ef0 x2 : 0000000000000000 x1 : 0000000100000001 x0 : 0000000000000000 Call trace: look_up_lock_class+0xf0/0x168 kernel/locking/lockdep.c:941 (P) register_lock_class+0x48/0x348 kernel/locking/lockdep.c:1295 __lock_acquire+0xa8/0x3058 kernel/locking/lockdep.c:5110 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5866 __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+0x100/0x5cc fs/bcachefs/rcu_pending.c:610 bch2_fs_btree_key_cache_exit+0x740/0x848 fs/bcachefs/btree_key_cache.c:784 __bch2_fs_free fs/bcachefs/super.c:562 [inline] bch2_fs_release+0x23c/0x72c fs/bcachefs/super.c:618 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2b0/0x438 lib/kobject.c:737 bch2_fs_free+0x308/0x378 fs/bcachefs/super.c:681 bch2_kill_sb+0x48/0x58 fs/bcachefs/fs.c:2623 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1431 __cleanup_mnt+0x20/0x30 fs/namespace.c:1438 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x16c/0x1ec 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+0xb4/0x17c arch/arm64/kernel/entry-common.c:768 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 619282 hardirqs last enabled at (619281): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (619281): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (619282): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (619282): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (619248): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (619248): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (618937): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 3 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete