------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 1 PID: 6361 at kernel/locking/lockdep.c:5207 __lock_acquire+0xc0c/0xd20 kernel/locking/lockdep.c:5207 Modules linked in: CPU: 1 UID: 0 PID: 6361 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:__lock_acquire+0xc0c/0xd20 kernel/locking/lockdep.c:5207 Code: ff ff 90 e8 26 67 18 03 85 c0 74 22 83 3d bf 5f 81 0d 00 75 19 90 48 c7 c7 a7 9b 21 8d 48 c7 c6 25 eb 09 8d e8 75 2c e7 ff 90 <0f> 0b 90 90 90 e9 8f 00 00 00 90 0f 0b 90 e9 8d fe ff ff 90 e8 eb RSP: 0018:ffffc90003ee78d0 EFLAGS: 00010046 RAX: 328e67c3ca2a2000 RBX: ffff88802b95d940 RCX: ffff88802b95d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000cf2 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1017124863 R12: 0000000000008000 R13: 0000000000000000 R14: ffff88802b95e460 R15: 0000000000000000 FS: 0000555590b9b500(0000) GS:ffff8881269bd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7e816e4000 CR3: 000000005649a000 CR4: 00000000003526f0 Call Trace: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __rt_spin_trylock kernel/locking/spinlock_rt.c:109 [inline] rt_spin_trylock+0xea/0x180 kernel/locking/spinlock_rt.c:118 spin_lock_irqsave_sdp_contention kernel/rcu/srcutree.c:375 [inline] srcu_gp_start_if_needed+0x24a/0x10b0 kernel/rcu/srcutree.c:1277 __call_srcu kernel/rcu/srcutree.c:1391 [inline] __synchronize_srcu+0x2fa/0x390 kernel/rcu/srcutree.c:1443 bch2_fs_btree_iter_exit+0x3f9/0x490 fs/bcachefs/btree_iter.c:3750 __bch2_fs_free fs/bcachefs/super.c:617 [inline] bch2_fs_release+0x2ab/0x830 fs/bcachefs/super.c:667 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22b/0x480 lib/kobject.c:737 deactivate_locked_super+0xb9/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1375 task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f99d29b7057 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffc2b4b3118 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f99d2a3180c RCX: 00007f99d29b7057 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc2b4b31d0 RBP: 00007ffc2b4b31d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc2b4b4250 R13: 00007f99d2a3180c R14: 00007ffc2b4b4290 R15: 000000000000002e