================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz.1.1438/9346 [HC0[0]:SC0[0]:HE1:SE1] takes: ffff88805483ac50 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88805483ac50 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: ccp_raw_event+0x4d/0x110 drivers/hwmon/corsair-cpro.c:154 {IN-SOFTIRQ-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 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 variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] cpumask_test_cpu include/linux/cpumask.h:444 [inline] cpu_online include/linux/cpumask.h:1030 [inline] trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xdb/0x4a0 kernel/locking/lockdep.c:5761 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] page_ext_get+0x3a/0x2a0 mm/page_ext.c:157 page_table_check_set+0x51/0x6d0 mm/page_table_check.c:112 page_table_check_pte_set include/linux/page_table_check.h:83 [inline] set_pte_at arch/x86/include/asm/pgtable.h:1009 [inline] copy_present_pte mm/memory.c:1000 [inline] copy_pte_range mm/memory.c:1091 [inline] copy_pmd_range mm/memory.c:1177 [inline] copy_pud_range mm/memory.c:1214 [inline] copy_p4d_range mm/memory.c:1238 [inline] copy_page_range+0x2586/0x3a60 mm/memory.c:1332 dup_mmap kernel/fork.c:703 [inline] dup_mm kernel/fork.c:1552 [inline] copy_mm+0xeb0/0x1680 kernel/fork.c:1601 copy_process+0x1952/0x4070 kernel/fork.c:2358 kernel_clone+0x24b/0x900 kernel/fork.c:2765 __do_sys_clone kernel/fork.c:2906 [inline] __se_sys_clone kernel/fork.c:2890 [inline] __x64_sys_clone+0x1a7/0x220 kernel/fork.c:2890 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: 183 hardirqs last enabled at (183): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (183): [] _raw_spin_unlock_irqrestore+0x82/0x120 kernel/locking/spinlock.c:194 hardirqs last disabled at (182): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (182): [] _raw_spin_lock_irqsave+0x8b/0x100 kernel/locking/spinlock.c:162 softirqs last enabled at (0): [] rcu_lock_acquire include/linux/rcupdate.h:350 [inline] softirqs last enabled at (0): [] rcu_read_lock include/linux/rcupdate.h:791 [inline] softirqs last enabled at (0): [] copy_process+0x974/0x4070 kernel/fork.c:2226 softirqs last disabled at (0): [<0000000000000000>] 0x0 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 *** 1 lock held by syz.1.1438/9346: #0: ffff888055804068 (&uhid->devlock){+.+.}-{3:3}, at: uhid_char_write+0x79/0xaf0 drivers/hid/uhid.c:733 stack backtrace: CPU: 0 PID: 9346 Comm: syz.1.1438 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+0x12ad/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 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 RIP: 0033:0x7fd05a99e199 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd05b831028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd05ac25fa0 RCX: 00007fd05a99e199 RDX: 0000000000000016 RSI: 0000200000000400 RDI: 0000000000000003 RBP: 00007fd05aa350b8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd05ac26038 R14: 00007fd05ac25fa0 R15: 00007ffefab446b8