================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u4:6/4421 [HC0[0]:SC1[1]:HE0:SE0] takes: ffff0000d3a5e8a8 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff0000d3a5e8a8 (&ccp->wait_input_report_lock){+.?.}-{2:2}, at: ccp_raw_event+0x58/0x104 drivers/hwmon/corsair-cpro.c:154 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x54/0x6c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ccp_raw_event+0x58/0x104 drivers/hwmon/corsair-cpro.c:154 hid_input_report+0x3a0/0x49c drivers/hid/hid-core.c:2129 uhid_dev_input2+0xac/0x134 drivers/hid/uhid.c:611 uhid_char_write+0x404/0xa1c drivers/hid/uhid.c:769 vfs_write+0x2a8/0x7c8 fs/read_write.c:582 ksys_write+0x12c/0x228 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 5548757 hardirqs last enabled at (5548756): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (5548756): [] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (5548757): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (5548757): [] _raw_spin_lock_irqsave+0xa4/0xb0 kernel/locking/spinlock.c:162 softirqs last enabled at (5548604): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (5548604): [] handle_softirqs+0xb1c/0xc90 kernel/softirq.c:624 softirqs last disabled at (5548753): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 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 *** 4 locks held by kworker/u4:6/4421: #0: ffff0000c0845138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1 #1: ffff8000213c7c40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267 #2: ffff800017a44150 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x144/0xa90 net/core/net_namespace.c:594 #3: ffff0000c0023148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove_by_name_ns+0x7c/0x184 fs/kernfs/dir.c:1662 stack backtrace: CPU: 0 PID: 4421 Comm: kworker/u4:6 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 Workqueue: netns cleanup_net dump_backtrace(regs = 0000000000000000 tsk = 0000000000000000) Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 print_usage_bug+0x4cc/0x6e8 kernel/locking/lockdep.c:4029 valid_state kernel/locking/lockdep.c:4041 [inline] mark_lock_irq+0x858/0xab8 kernel/locking/lockdep.c:-1 mark_lock+0x224/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xc70/0x7280 kernel/locking/lockdep.c:5125 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x54/0x6c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ccp_raw_event+0x58/0x104 drivers/hwmon/corsair-cpro.c:154 hid_input_report+0x3a0/0x49c drivers/hid/hid-core.c:2129 hid_irq_in+0x3cc/0x6dc drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2ec/0x50c drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x100/0x3a4 drivers/usb/core/hcd.c:1758 dummy_timer+0x7e4/0x29b0 drivers/usb/gadget/udc/dummy_hcd.c:2018 __run_hrtimer kernel/time/hrtimer.c:1751 [inline] __hrtimer_run_queues+0x444/0xc58 kernel/time/hrtimer.c:1815 hrtimer_run_softirq+0x164/0x408 kernel/time/hrtimer.c:1832 handle_softirqs+0x318/0xc90 kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:897 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:477 [inline] __irq_exit_rcu+0x23c/0x430 kernel/softirq.c:679 irq_exit_rcu+0x14/0x84 kernel/softirq.c:691 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] vprintk_store+0x920/0xb60 kernel/printk/printk.c:2258 vprintk_emit+0x118/0x2f0 kernel/printk/printk.c:2284 vprintk_default+0x54/0x80 kernel/printk/printk.c:2318 vprintk+0x200/0x2a0 kernel/printk/printk_safe.c:45 _printk+0xe0/0x130 kernel/printk/printk.c:2328 __dynamic_pr_debug+0x148/0x1e4 lib/dynamic_debug.c:875 __kernfs_remove+0x650/0x654 fs/kernfs/dir.c:1439 kernfs_remove_by_name_ns+0xe4/0x184 fs/kernfs/dir.c:1667 kernfs_remove_by_name include/linux/kernfs.h:622 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf4/0x278 fs/sysfs/group.c:288 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:312 destroy_gid_attrs drivers/infiniband/core/sysfs.c:1190 [inline] ib_free_port_attrs+0xa8/0x348 drivers/infiniband/core/sysfs.c:1415 remove_one_compat_dev drivers/infiniband/core/device.c:1012 [inline] rdma_dev_exit_net+0x1bc/0x30c drivers/infiniband/core/device.c:1150 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x5d0/0xa90 net/core/net_namespace.c:640 process_one_work+0x7e4/0x13bc kernel/workqueue.c:2292 worker_thread+0x8cc/0xfe8 kernel/workqueue.c:2439 kthread+0x254/0x2e0 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ec6a000 176891 tcp_conntracks: syn=0 ack=1 fin=1 rst=0 old=3 new=4 nf_conntrack: normal packet for 0000000015f9dd71 tcp_conntracks: syn=0 ack=1 fin=0 rst=0 old=4 new=5 tcp_conntracks: syn=0 ack=0 fin=0 rst=1 old=5 new=8 dummy_hcd dummy_hcd.0: no ep configured for urb 00000000ccba5413 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c71d8000, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 56 dummy_hcd dummy_hcd.0: no ep configured for urb 00000000f682b1ef kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c71d8000, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 70 nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) percpu_ref_switch_to_atomic_rcu: global 9223372036854775809 percpu 0 percpu_ref_switch_to_atomic_rcu: global 9223372036854775808 percpu 1 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 635 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 356 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 258 nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) wireguard: wg1: Receiving keepalive packet from peer 33 ([::1]:20001/0%0) wireguard: wg1: Receiving keepalive packet from peer 21 ([::1]:20001/0%0) wireguard: wg1: Receiving keepalive packet from peer 9 ([::1]:20001/0%0) kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 356 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 400 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 514 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 400 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 280 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 238 kcov: kcov_remote_start: handle = 100000000000001, context: softirq kcov: kcov_start: t = ffff0000c09b3800, size = 262144, area = ffff80001ea69000 kcov: kcov_move_area: ffff8000294f0000 1048576 <= ffff80001ea69000 123 nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) wireguard: wg1: Handshake for peer 3 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 14) wireguard: wg0: Handshake for peer 1 ([::1]:20002/0%0) did not complete after 5 seconds, retrying (try 2) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) wireguard: wg1: Receiving keepalive packet from peer 39 ([::1]:20001/0%0) wireguard: wg1: Receiving keepalive packet from peer 15 ([::1]:20001/0%0) wireguard: wg0: Handshake for peer 2 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 2) nf_conntrack: new packet for 00000000a649acae nf_conntrack: Confirming conntrack 00000000a649acae nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) wireguard: wg2: Handshake for peer 5 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 15) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_conntrack: new packet for 000000004a1652be nf_nat: Already setup manip DST for ct 000000004a1652be (status bits 0x188) nf_nat: Already setup manip SRC for ct 000000004a1652be (status bits 0x188) nf_nat: Already setup manip DST for ct 000000004a1652be (status bits 0x188) nf_nat: Already setup manip SRC for ct 000000004a1652be (status bits 0x188) nf_conntrack: new packet for 0000000028228aab nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip DST for ct 0000000028228aab (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000028228aab (status bits 0x188)