------------[ 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: 38 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: 38 Comm: kworker/u8:2 Not tainted 6.14.0-rc5-syzkaller-g14d05f12084d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: btree_update btree_interior_update_work 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 : ffff800097fe6da0 x29: ffff800097fe6da0 x28: dfff800000000000 x27: 0000000000000000 x26: ffff800097798900 x25: ffff800097798000 x24: 0000000000000001 x23: 0000000000000000 x22: 1ffff00011f780cb x21: ffff80009793f800 x20: fffffdffbf70da88 x19: ffff8000932edb18 x18: 0000000000000008 x17: 6620747562202c79 x16: ffff8000832b8f3c x15: 0000000000000001 x14: 1fffe000366f60f2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000003 x10: 0000000000ff0100 x9 : bba081721831c300 x8 : bba081721831c300 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800097fe6558 x4 : ffff80008fcaf7a0 x3 : ffff80008074476c 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 include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] __rcu_pending_enqueue fs/bcachefs/rcu_pending.c:434 [inline] rcu_pending_enqueue+0x160/0x8bc fs/bcachefs/rcu_pending.c:531 bkey_cached_free+0xb8/0x214 fs/bcachefs/btree_key_cache.c:115 bch2_btree_key_cache_drop+0x110/0x520 fs/bcachefs/btree_key_cache.c:613 bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:794 [inline] do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:866 [inline] __bch2_trans_commit+0x4e30/0x6190 fs/bcachefs/btree_trans_commit.c:1070 bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:708 [inline] btree_interior_update_work+0xd54/0x1e08 fs/bcachefs/btree_update_interior.c:846 process_one_work+0x810/0x1638 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3400 kthread+0x65c/0x7b0 kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 irq event stamp: 330858 hardirqs last enabled at (330857): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (330858): [] __rcu_pending_enqueue fs/bcachefs/rcu_pending.c:432 [inline] hardirqs last disabled at (330858): [] rcu_pending_enqueue+0xe4/0x8bc fs/bcachefs/rcu_pending.c:531 softirqs last enabled at (330664): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (330664): [] batadv_nc_purge_paths+0x2f4/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (330662): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (330662): [] batadv_nc_purge_paths+0xd0/0x378 net/batman-adv/network-coding.c:442 ---[ end trace 0000000000000000 ]---