bcachefs (loop4): marking superblocks ------------[ 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: 0 PID: 7880 at kernel/locking/lockdep.c:941 look_up_lock_class+0xec/0x160 kernel/locking/lockdep.c:938 Modules linked in: CPU: 0 UID: 0 PID: 7880 Comm: syz.4.317 Not tainted 6.14.0-rc3-syzkaller-ge6747d19291c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 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 : ffff80009d605660 x29: ffff80009d605660 x28: dfff800000000000 x27: 0000000000000000 x26: ffff800097797900 x25: ffff800097797000 x24: 0000000000000001 x23: 0000000000000000 x22: 1ffff00011f780cb x21: ffff80009793e800 x20: fffffdffbf72e6c0 x19: ffff8000932e3130 x18: 0000000000000008 x17: 747562202c79656b x16: ffff8000832b5a70 x15: 0000000000000001 x14: 1fffe000366f18f2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000007ffff x9 : ae667a11f67b7a00 x8 : ae667a11f67b7a00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009d604e18 x4 : ffff80008fcaf720 x3 : ffff800080743220 x2 : 0000000000000001 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_pcpu_dequeue+0x38/0x23c fs/bcachefs/rcu_pending.c:538 rcu_pending_dequeue+0x44/0x54 fs/bcachefs/rcu_pending.c:568 bkey_cached_alloc fs/bcachefs/btree_key_cache.c:143 [inline] btree_key_cache_create fs/bcachefs/btree_key_cache.c:222 [inline] btree_key_cache_fill+0x390/0x29f4 fs/bcachefs/btree_key_cache.c:319 bch2_btree_path_traverse_cached+0x5d0/0x8ec fs/bcachefs/btree_key_cache.c:381 bch2_btree_path_traverse_one+0x36c/0x23d4 fs/bcachefs/btree_iter.c:1179 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline] bch2_btree_iter_peek_slot+0x654/0x1e34 fs/bcachefs/btree_iter.c:2784 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:585 [inline] bch2_bkey_get_iter+0xe4/0x1bc fs/bcachefs/btree_iter.h:599 bch2_trans_start_alloc_update_noupdate+0xb0/0x174 fs/bcachefs/alloc_background.c:458 __bch2_trans_mark_metadata_bucket fs/bcachefs/buckets.c:955 [inline] bch2_trans_mark_metadata_bucket+0x258/0x1234 fs/bcachefs/buckets.c:1043 bch2_trans_mark_metadata_sectors fs/bcachefs/buckets.c:1060 [inline] __bch2_trans_mark_dev_sb fs/bcachefs/buckets.c:1100 [inline] bch2_trans_mark_dev_sb+0x330/0x6c8 fs/bcachefs/buckets.c:1128 bch2_trans_mark_dev_sbs_flags+0x754/0x7b4 fs/bcachefs/buckets.c:1138 bch2_trans_mark_dev_sbs+0x24/0x34 fs/bcachefs/buckets.c:1150 bch2_fs_initialize+0xa10/0x1204 fs/bcachefs/recovery.c:1149 bch2_fs_start+0x31c/0x570 fs/bcachefs/super.c:1042 bch2_fs_get_tree+0xa50/0x11d4 fs/bcachefs/fs.c:2203 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3560 path_mount+0x590/0xe04 fs/namespace.c:3887 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount fs/namespace.c:4088 [inline] __arm64_sys_mount+0x4f4/0x5d0 fs/namespace.c:4088 __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: 69692 hardirqs last enabled at (69691): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (69692): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (69692): [] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170 softirqs last enabled at (66082): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (66082): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (66063): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]--- bcachefs (loop4): initializing freespace bcachefs (loop4): done initializing freespace bcachefs (loop4): reading snapshots table bcachefs (loop4): reading snapshots done bcachefs (loop4): done starting filesystem