------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 5975 at kernel/locking/lockdep.c:5198 __lock_acquire+0x165b/0x2100 kernel/locking/lockdep.c:5198 Modules linked in: CPU: 0 UID: 0 PID: 5975 Comm: kworker/0:8 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 nsim_dev_hwstats_traffic_work 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:ffffc90004dc71b0 EFLAGS: 00010046 RAX: 8c76bccb46757100 RBX: 0000000028f5c220 RCX: ffff88807c488000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88807c488b40 R08: ffffffff81819e52 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: ffff88807c488ad4 R13: ffff88807c488000 R14: 0000000000000000 R15: ffff88807c488b60 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004ad10000 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:lock_is_held_type+0x13b/0x190 Code: 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 42 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90004dc77d8 EFLAGS: 00000206 RAX: 8c76bccb46757100 RBX: 0000000000000000 RCX: ffff88807c488000 RDX: 0000000000000000 RSI: ffffffff8c2ac600 RDI: ffffffff8c8100a0 RBP: 0000000000000002 R08: ffffc90004dc7a47 R09: ffffc90004dc7a20 R10: dffffc0000000000 R11: fffff520009b8f49 R12: 0000000000000246 R13: ffff88807c488000 R14: 00000000ffffffff R15: ffffffff8eb39440 lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0xa5/0x780 kernel/sched/core.c:8729 __mutex_lock_common kernel/locking/mutex.c:562 [inline] __mutex_lock+0x126/0x1010 kernel/locking/mutex.c:730 nsim_dev_hwstats_traffic_work+0x33/0x1b0 drivers/net/netdevsim/hwstats.c:47 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: 75 44 jne 0x46 2: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 9: 00 a: 9c pushf b: 8f 04 24 pop (%rsp) e: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 15: 75 4c jne 0x63 17: 41 f7 c4 00 02 00 00 test $0x200,%r12d 1e: 74 01 je 0x21 20: fb sti 21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 28: 00 00 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 42 jne 0x73 31: 89 d8 mov %ebx,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15