------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5172 __lock_acquire+0x15fd/0x2050 kernel/locking/lockdep.c:5172 Modules linked in: CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.12.0-syzkaller-00239-gc6d64479d609 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:__lock_acquire+0x15fd/0x2050 kernel/locking/lockdep.c:5172 Code: 0f b6 04 08 84 c0 0f 85 d7 09 00 00 83 3d 8a 1b ad 0e 00 75 19 90 48 c7 c7 a0 ca 0a 8c 48 c7 c6 80 f3 0a 8c e8 24 6c e5 ff 90 <0f> 0b 90 90 90 e9 09 fe ff ff 90 0f 0b 90 e9 5f fd ff ff 90 e8 6a RSP: 0018:ffffffff8e607670 EFLAGS: 00010046 RAX: 202d94a0e99f8600 RBX: 0000000029804b68 RCX: ffffffff8e694700 RDX: 0000000040000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8e695208 R08: ffffffff8155e312 R09: fffffbfff1cfa3fc R10: dffffc0000000000 R11: fffffbfff1cfa3fc R12: ffffffff8e694700 R13: ffffffff8e6951d8 R14: 0000000000000000 R15: ffffffff8e695228 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fddaeb8ef98 CR3: 000000006b3ee000 CR4: 0000000000350ef0 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0xb0/0x140 kernel/sched/core.c:606 raw_spin_rq_lock kernel/sched/sched.h:1506 [inline] raw_spin_rq_lock_irq kernel/sched/sched.h:1512 [inline] sched_core_balance+0xfa6/0x1180 kernel/sched/core.c:6362 do_balance_callbacks kernel/sched/core.c:4980 [inline] __balance_callbacks+0x18a/0x280 kernel/sched/core.c:5034 finish_lock_switch kernel/sched/core.c:5081 [inline] finish_task_switch+0x1d3/0x870 kernel/sched/core.c:5200 context_switch kernel/sched/core.c:5331 [inline] __schedule+0x1857/0x4c30 kernel/sched/core.c:6693 schedule_idle+0x56/0x90 kernel/sched/core.c:6811 do_idle+0x56a/0x5d0 kernel/sched/idle.c:354 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:424 rest_init+0x2dc/0x300 init/main.c:747 start_kernel+0x47f/0x500 init/main.c:1105 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0x9f/0xa0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x147