================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.4.2176/12691 [HC0[0]:SC1[1]:HE0:SE0] takes: ffff888055adcc68 (&ccp->wait_input_report_lock){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff888055adcc68 (&ccp->wait_input_report_lock){+.?.}-{3:3}, at: ccp_raw_event+0x59/0x130 drivers/hwmon/corsair-cpro.c:161 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ccp_raw_event+0x59/0x130 drivers/hwmon/corsair-cpro.c:161 __hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2175 uhid_dev_input2 drivers/hid/uhid.c:609 [inline] uhid_char_write+0xb6b/0x10e0 drivers/hid/uhid.c:767 vfs_write+0x2aa/0x1050 fs/read_write.c:685 ksys_write+0x1f8/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 129 hardirqs last enabled at (128): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (128): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (129): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (129): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (104): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (104): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (104): [] __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758 softirqs last disabled at (125): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (125): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (125): [] __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758 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 *** locks held by syz.4.2176/12691: 0, last CPU#1 stack backtrace: CPU: 1 UID: 0 PID: 12691 Comm: syz.4.2176 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_usage_bug.part.0+0x258/0x340 kernel/locking/lockdep.c:4086 print_usage_bug kernel/locking/lockdep.c:4054 [inline] valid_state kernel/locking/lockdep.c:4100 [inline] mark_lock_irq kernel/locking/lockdep.c:4311 [inline] mark_lock+0x956/0x1020 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:4686 [inline] __lock_acquire+0x7f1/0x1f40 kernel/locking/lockdep.c:5242 lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ccp_raw_event+0x59/0x130 drivers/hwmon/corsair-cpro.c:161 __hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2175 hid_irq_in+0x55d/0x710 drivers/hid/usbhid/hid-core.c:287 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xdaf/0x3820 drivers/usb/gadget/udc/dummy_hcd.c:2023 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2148 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:lock_release+0x19e/0x310 kernel/locking/lockdep.c:5968 Code: ff 65 0f c1 05 9b 3a a6 12 83 f8 01 0f 85 27 01 00 00 9c 58 f6 c4 02 0f 85 12 01 00 00 41 f7 c6 00 02 00 00 0f 85 c8 00 00 00 <48> 8b 44 24 10 65 48 2b 05 9d f3 a5 12 0f 85 4d 01 00 00 48 83 c4 RSP: 0018:ffffc9000665f948 EFLAGS: 00000206 RAX: 0000000000000046 RBX: ffffffff8edec5a0 RCX: ffffc9000665f954 RDX: 0000000000000000 RSI: ffffffff8e36e3a6 RDI: ffffffff8c624080 RBP: ffffffff81b9954e R08: ffffffff91f7b440 R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000017e80 R12: ffff888037a48000 R13: ffffc9000665fa00 R14: 0000000000000202 R15: 0000000000000001 rcu_lock_release include/linux/rcupdate.h:319 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] class_rcu_destructor include/linux/rcupdate.h:1216 [inline] unwind_next_frame+0x3c3/0x2090 arch/x86/kernel/unwind_orc.c:495 arch_stack_walk+0x94/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6509 [inline] kfree+0x22b/0x6d0 mm/slub.c:6802 raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1154 [inline] raw_ioctl+0x265/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1325 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f96ca99de2b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f96cb783f60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f96ca99de2b RDX: 00007f96cb783fe0 RSI: 0000000040085507 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007f96cad50320 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000200000000080 R13: 0000000000000000 R14: 00007f96cac26090 R15: 00007ffca7da02c8 sd 0:0:1:0: [sda] tag#7645 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7645 CDB: Write(10) 2a 00 00 10 12 4e 00 00 18 00 sd 0:0:1:0: [sda] tag#7645 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7645 sd_done: completed 12288 of 12288 bytes sd 0:0:1:0: [sda] tag#7645 24 sectors total, 12288 bytes done. sd 0:0:1:0: [sda] tag#7646 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7646 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sda] tag#7646 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7646 sd_done: completed 0 of 0 bytes sd 0:0:1:0: [sda] tag#7646 0 sectors total, 0 bytes done. sd 0:0:1:0: [sda] tag#7647 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7647 CDB: Write(10) 2a 08 00 10 12 66 00 00 08 00 sd 0:0:1:0: [sda] tag#7647 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7647 sd_done: completed 4096 of 4096 bytes sd 0:0:1:0: [sda] tag#7647 8 sectors total, 4096 bytes done. sd 0:0:1:0: [sda] tag#7648 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7648 CDB: Write(10) 2a 00 00 10 12 6e 00 00 50 00 sd 0:0:1:0: [sda] tag#7648 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7648 sd_done: completed 40960 of 40960 bytes sd 0:0:1:0: [sda] tag#7648 80 sectors total, 40960 bytes done. sd 0:0:1:0: [sda] tag#7649 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7649 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sda] tag#7649 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7649 sd_done: completed 0 of 0 bytes sd 0:0:1:0: [sda] tag#7649 0 sectors total, 0 bytes done. sd 0:0:1:0: [sda] tag#7650 Done: SUCCESS Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: [sda] tag#7650 CDB: Write(10) 2a 08 00 10 12 be 00 00 08 00 sd 0:0:1:0: [sda] tag#7650 scsi host busy 1 failed 0 sd 0:0:1:0: Notifying upper driver of completion (result 0) sd 0:0:1:0: [sda] tag#7650 sd_done: completed 4096 of 4096 bytes sd 0:0:1:0: [sda] tag#7650 8 sectors total, 4096 bytes done. ---------------- Code disassembly (best guess): 0: ff 65 0f jmp *0xf(%rbp) 3: c1 05 9b 3a a6 12 83 roll $0x83,0x12a63a9b(%rip) # 0x12a63aa5 a: f8 clc b: 01 0f add %ecx,(%rdi) d: 85 27 test %esp,(%rdi) f: 01 00 add %eax,(%rax) 11: 00 9c 58 f6 c4 02 0f add %bl,0xf02c4f6(%rax,%rbx,2) 18: 85 12 test %edx,(%rdx) 1a: 01 00 add %eax,(%rax) 1c: 00 41 f7 add %al,-0x9(%rcx) 1f: c6 00 02 movb $0x2,(%rax) 22: 00 00 add %al,(%rax) 24: 0f 85 c8 00 00 00 jne 0xf2 * 2a: 48 8b 44 24 10 mov 0x10(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 9d f3 a5 sub %gs:0x12a5f39d(%rip),%rax # 0x12a5f3d4 36: 12 37: 0f 85 4d 01 00 00 jne 0x18a 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4