------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 10 at kernel/locking/lockdep.c:5198 __lock_acquire+0x165b/0x2100 kernel/locking/lockdep.c:5198 Modules linked in: CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.14.0-rc7-syzkaller-00196-g88d324e69ea9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_power_efficient wg_ratelimiter_gc_entries RIP: 0010:__lock_acquire+0x165b/0x2100 kernel/locking/lockdep.c:5198 Code: 0f b6 04 08 84 c0 0f 85 31 0a 00 00 83 3d b0 3e a0 0e 00 75 19 90 48 c7 c7 40 b2 2a 8c 48 c7 c6 80 db 2a 8c e8 46 ac e4 ff 90 <0f> 0b 90 90 90 e9 be fd ff ff 90 0f 0b 90 e9 16 fd ff ff 90 e8 3c RSP: 0018:ffffc900000f7490 EFLAGS: 00010046 RAX: 026187859c315c00 RBX: 000000000a3c4220 RCX: ffff88801c2f9e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801c2fa940 R08: ffffffff81819e52 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: ffff88801c2fa8d4 R13: ffff88801c2f9e00 R14: 0000000000000000 R15: ffff88801c2fa960 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2f0eda CR3: 0000000032f26000 CR4: 0000000000350ef0 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851 _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:1521 [inline] rq_lock kernel/sched/sched.h:1852 [inline] __schedule+0x357/0x4c90 kernel/sched/core.c:6688 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7087 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline] RIP: 0010:__raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] RIP: 0010:_raw_spin_unlock+0x2f/0x50 kernel/locking/spinlock.c:186 Code: 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 7a 34 91 f5 48 89 df e8 62 7d 92 f5 bf 01 00 00 00 e8 c8 bd 83 f5 65 8b 05 b9 10 f8 73 <85> c0 74 06 5b e9 32 7b 04 f5 e8 a2 79 1e f5 5b e9 27 7b 04 f5 66 RSP: 0018:ffffc900000f7ab8 EFLAGS: 00000297 RAX: 0000000080000000 RBX: ffffffff8f650fc0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffc900000f7d20 R08: ffffffff8f650fc3 R09: 1ffffffff1eca1f8 R10: dffffc0000000000 R11: fffffbfff1eca1f9 R12: 0000000000000000 R13: dffffc0000000000 R14: 000000164bf58bd4 R15: ffffffff8f6510e0 spin_unlock include/linux/spinlock.h:391 [inline] wg_ratelimiter_gc_entries+0x3ab/0x470 drivers/net/wireguard/ratelimiter.c:76 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac0/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd30 kernel/workqueue.c:3400 kthread+0x7ab/0x920 kernel/kthread.c:464 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ---------------- Code disassembly (best guess): 0: 48 89 fb mov %rdi,%rbx 3: 48 83 c7 18 add $0x18,%rdi 7: 48 8b 74 24 08 mov 0x8(%rsp),%rsi c: e8 7a 34 91 f5 call 0xf591348b 11: 48 89 df mov %rbx,%rdi 14: e8 62 7d 92 f5 call 0xf5927d7b 19: bf 01 00 00 00 mov $0x1,%edi 1e: e8 c8 bd 83 f5 call 0xf583bdeb 23: 65 8b 05 b9 10 f8 73 mov %gs:0x73f810b9(%rip),%eax # 0x73f810e3 * 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 06 je 0x34 2e: 5b pop %rbx 2f: e9 32 7b 04 f5 jmp 0xf5047b66 34: e8 a2 79 1e f5 call 0xf51e79db 39: 5b pop %rbx 3a: e9 27 7b 04 f5 jmp 0xf5047b66 3f: 66 data16