================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.4.94/4673 [HC0[0]:SC1[1]:HE0:SE0] takes: ffff88807b61b450 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88807b61b450 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: ccp_raw_event+0x4d/0x110 drivers/hwmon/corsair-cpro.c:154 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ccp_raw_event+0x4d/0x110 drivers/hwmon/corsair-cpro.c:154 hid_input_report+0x3fe/0x4f0 drivers/hid/hid-core.c:2129 uhid_dev_input2+0xb1/0x130 drivers/hid/uhid.c:611 uhid_char_write+0x376/0xaf0 drivers/hid/uhid.c:769 vfs_write+0x2dc/0x9a0 fs/read_write.c:582 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 307 hardirqs last enabled at (306): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (306): [] _raw_spin_unlock_irqrestore+0x82/0x120 kernel/locking/spinlock.c:194 hardirqs last disabled at (307): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (307): [] _raw_spin_lock_irqsave+0x8b/0x100 kernel/locking/spinlock.c:162 softirqs last enabled at (272): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last enabled at (272): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last enabled at (272): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 softirqs last disabled at (301): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last disabled at (301): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last disabled at (301): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ccp->wait_input_report_lock); lock(&ccp->wait_input_report_lock); *** DEADLOCK *** no locks held by syz.4.94/4673. stack backtrace: CPU: 0 PID: 4673 Comm: syz.4.94 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4244 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf3/0x7ea0 kernel/locking/lockdep.c:5125 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ccp_raw_event+0x4d/0x110 drivers/hwmon/corsair-cpro.c:154 hid_input_report+0x3fe/0x4f0 drivers/hid/hid-core.c:2129 hid_irq_in+0x434/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1675 dummy_timer+0xa39/0x34e0 drivers/usb/gadget/udc/dummy_hcd.c:2018 __run_hrtimer kernel/time/hrtimer.c:1751 [inline] __hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815 hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5866 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90005a17bf8 EFLAGS: 00000206 RAX: 5168cb13ea69d900 RBX: ffff888074010000 RCX: 5168cb13ea69d900 RDX: 0000000000000000 RSI: ffffffff8a8c2a20 RDI: ffffffff8adf6de0 RBP: 0000000000000000 R08: ffffc90005a17def R09: ffffc90005a17de0 R10: dffffc0000000000 R11: fffff52000b42fbe R12: dffffc0000000000 R13: 0000000000000246 R14: ffffffff8cb2d960 R15: 00000000ffffffff lock_is_held include/linux/lockdep.h:288 [inline] __might_resched+0xea/0x5f0 kernel/sched/core.c:9932 __might_fault+0x6d/0x120 mm/memory.c:5848 _copy_from_user+0x27/0x170 lib/usercopy.c:14 copy_from_user include/linux/uaccess.h:161 [inline] get_timespec64+0x93/0x1b0 kernel/time/time.c:877 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1303 [inline] __se_sys_clock_nanosleep+0x1c3/0x3a0 kernel/time/posix-timers.c:1291 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0b3035e9ce Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f0b311eef38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00007f0b311f06c0 RCX: 00007f0b3035e9ce RDX: 00007f0b311eef90 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000080 R13: 0000000000000000 R14: 00007f0b30626090 R15: 00007ffdb93e3118 ---------------- Code disassembly (best guess): 0: 75 40 jne 0x42 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 46 jne 0x5d 17: 41 f7 c5 00 02 00 00 test $0x200,%r13d 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 3c jne 0x6d 31: 89 e8 mov %ebp,%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