================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor/29921 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88803170e068 (&dev->spinlock){?...}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff88803170e068 (&dev->spinlock){?...}-{3:3}, at: das16m1_interrupt+0x5e/0x180 drivers/comedi/drivers/das16m1.c:460 {HARDIRQ-ON-W} state was registered at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:182 spin_lock_bh include/linux/spinlock.h:348 [inline] waveform_ao_cancel+0x8d/0x120 drivers/comedi/drivers/comedi_test.c:628 do_cancel drivers/comedi/comedi_fops.c:818 [inline] comedi_close+0x27e/0x5e0 drivers/comedi/comedi_fops.c:3036 __fput+0x451/0x8c0 fs/file_table.c:500 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:269 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 450 hardirqs last enabled at (449): [] syscall_enter_from_user_mode include/linux/entry-common.h:186 [inline] hardirqs last enabled at (449): [] do_syscall_64+0xa3/0xf80 arch/x86/entry/syscall_64.c:90 hardirqs last disabled at (450): [] common_interrupt+0x13/0xe0 arch/x86/kernel/irq.c:326 softirqs last enabled at (128): [] __do_softirq kernel/softirq.c:660 [inline] softirqs last enabled at (128): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last enabled at (128): [] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:739 softirqs last disabled at (33): [] __do_softirq kernel/softirq.c:660 [inline] softirqs last disabled at (33): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (33): [] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:739 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&dev->spinlock); lock(&dev->spinlock); *** DEADLOCK *** no locks held by syz-executor/29921. stack backtrace: CPU: 0 UID: 0 PID: 29921 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28b/0x2e0 kernel/locking/lockdep.c:4042 valid_state kernel/locking/lockdep.c:4056 [inline] mark_lock_irq+0x410/0x420 kernel/locking/lockdep.c:-1 mark_lock+0x115/0x190 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:4639 [inline] __lock_acquire+0x661/0x2cf0 kernel/locking/lockdep.c:5191 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:158 spin_lock include/linux/spinlock.h:342 [inline] das16m1_interrupt+0x5e/0x180 drivers/comedi/drivers/das16m1.c:460 __handle_irq_event_percpu+0x216/0x9a0 kernel/irq/handle.c:209 handle_irq_event_percpu kernel/irq/handle.c:246 [inline] handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:263 handle_edge_irq+0x23b/0x9f0 kernel/irq/chip.c:855 generic_handle_irq_desc include/linux/irqdesc.h:186 [inline] handle_irq arch/x86/kernel/irq.c:262 [inline] call_irq_handler arch/x86/kernel/irq.c:-1 [inline] __common_interrupt+0x141/0x1f0 arch/x86/kernel/irq.c:333 common_interrupt+0xb6/0xe0 arch/x86/kernel/irq.c:326 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688 RIP: 0010:ref_tracker_free+0x58/0x840 lib/ref_tracker.c:288 Code: e0 00 00 00 49 bc f8 f8 f8 f8 f8 f8 f8 f8 49 bd 00 00 00 00 00 fc ff df 48 c7 44 24 20 b3 8a b5 41 48 c7 44 24 28 fe 2c 15 8e <48> c7 44 24 30 e0 de eb 84 48 8d 5c 24 20 48 c1 eb 03 49 8d 84 24 RSP: 0018:ffffc9000efefb20 EFLAGS: 00000282 RAX: da632d92baa2d400 RBX: fffffffffffffff5 RCX: ffff88807e8bbd00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807eea0630 RBP: ffffc9000efefc50 R08: ffff8880794289cb R09: 1ffff1100f285139 R10: dffffc0000000000 R11: ffffed100f28513a R12: f8f8f8f8f8f8f8f8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88807eea0630 netdev_tracker_free include/linux/netdevice.h:4471 [inline] netdev_put include/linux/netdevice.h:4488 [inline] dev_put include/linux/netdevice.h:4514 [inline] tun_put drivers/net/tun.c:800 [inline] tun_chr_read_iter+0x1ad/0x260 drivers/net/tun.c:2212 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x582/0xa70 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:717 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4df255cfce 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:00007fffd1c77578 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 000055558747c500 RCX: 00007f4df255cfce RDX: 00000000000003e8 RSI: 00007fffd1c775e0 RDI: 00000000000000c8 RBP: 00007fffd1c77a1c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000006d8 R13: 00000000000927c0 R14: 0000000000110a89 R15: 00007fffd1c77a70 comedi comedi3: fifo overflow ---------------- Code disassembly (best guess): 0: e0 00 loopne 0x2 2: 00 00 add %al,(%rax) 4: 49 bc f8 f8 f8 f8 f8 movabs $0xf8f8f8f8f8f8f8f8,%r12 b: f8 f8 f8 e: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 15: fc ff df 18: 48 c7 44 24 20 b3 8a movq $0x41b58ab3,0x20(%rsp) 1f: b5 41 21: 48 c7 44 24 28 fe 2c movq $0xffffffff8e152cfe,0x28(%rsp) 28: 15 8e * 2a: 48 c7 44 24 30 e0 de movq $0xffffffff84ebdee0,0x30(%rsp) <-- trapping instruction 31: eb 84 33: 48 8d 5c 24 20 lea 0x20(%rsp),%rbx 38: 48 c1 eb 03 shr $0x3,%rbx 3c: 49 rex.WB 3d: 8d .byte 0x8d 3e: 84 .byte 0x84 3f: 24 .byte 0x24