============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- kworker/0:0H/9425 is trying to lock: ffff888023bdb5e8 (&fi->mutex){+.+.}-{4:4}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff888023bdb5e8 (&fi->mutex){+.+.}-{4:4}, at: tcp_tsq_handler+0x1d/0x200 net/ipv4/tcp_output.c:1291 other info that might help us debug this: context-{3:3} 4 locks held by kworker/0:0H/9425: #0: ffff88801bc0ad40 ((wq_completion)events_highpri){+.+.}-{0:0}, at: process_one_work+0x12b1/0x1940 kernel/workqueue.c:3297 #1: ffffc90003f8fd08 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: process_one_work+0x988/0x1940 kernel/workqueue.c:3298 #2: ffff88801bc09540 ((wq_completion)events_bh){+.-.}-{0:0}, at: process_one_work+0x12b1/0x1940 kernel/workqueue.c:3297 #3: ffffc90000007d60 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: process_one_work+0x988/0x1940 kernel/workqueue.c:3298 stack backtrace: CPU: 0 UID: 0 PID: 9425 Comm: kworker/0:0H Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: events_highpri snd_vmidi_output_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4830 [inline] check_wait_context kernel/locking/lockdep.c:4902 [inline] __lock_acquire+0xf75/0x1a40 kernel/locking/lockdep.c:5187 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5825 __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] tcp_tsq_handler+0x1d/0x200 net/ipv4/tcp_output.c:1291 tcp_tsq_workfn+0x2b2/0x560 net/ipv4/tcp_output.c:1325 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] bh_worker+0x646/0x890 kernel/workqueue.c:3708 workqueue_softirq_action+0x142/0x1a0 kernel/workqueue.c:3736 tasklet_action+0x14/0x70 kernel/softirq.c:965 handle_softirqs+0x1ea/0x9b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_call_function_single arch/x86/kernel/smp.c:267 [inline] sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:267 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:681 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:198 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 96 50 28 f6 48 89 df e8 1e a0 28 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 a5 ad 17 f6 65 8b 05 ee 86 a5 08 85 c0 74 16 5b RSP: 0000:ffffc90003f8fb38 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff888032f36438 RCX: 0000000000000040 RDX: 0000000000000000 RSI: ffffffff8e1a9056 RDI: ffffffff8c400380 RBP: 0000000000000293 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888032f36438 R14: 0000000000000001 R15: ffff888032fd9000 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] class_spinlock_irqsave_destructor include/linux/spinlock.h:619 [inline] snd_rawmidi_transmit+0xf1/0x130 sound/core/rawmidi.c:1486 snd_vmidi_output_work+0x111/0x390 sound/core/seq/seq_virmidi.c:151 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: workqueue leaked atomic, lock or RCU: kworker/0:0H[9425] preempt=0x00000101 lock=2->0 RCU=0->0 workfn=tcp_tsq_workfn INFO: lockdep is turned off. CPU: 0 UID: 0 PID: 9425 Comm: kworker/0:0H Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: events_highpri snd_vmidi_output_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 process_one_work.cold+0x128/0x2fe kernel/workqueue.c:3343 process_scheduled_works kernel/workqueue.c:3405 [inline] bh_worker+0x646/0x890 kernel/workqueue.c:3708 workqueue_softirq_action+0x142/0x1a0 kernel/workqueue.c:3736 tasklet_action+0x14/0x70 kernel/softirq.c:965 handle_softirqs+0x1ea/0x9b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_call_function_single arch/x86/kernel/smp.c:267 [inline] sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:267 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:681 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:198 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 96 50 28 f6 48 89 df e8 1e a0 28 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 a5 ad 17 f6 65 8b 05 ee 86 a5 08 85 c0 74 16 5b RSP: 0000:ffffc90003f8fb38 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff888032f36438 RCX: 0000000000000040 RDX: 0000000000000000 RSI: ffffffff8e1a9056 RDI: ffffffff8c400380 RBP: 0000000000000293 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888032f36438 R14: 0000000000000001 R15: ffff888032fd9000 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] class_spinlock_irqsave_destructor include/linux/spinlock.h:619 [inline] snd_rawmidi_transmit+0xf1/0x130 sound/core/rawmidi.c:1486 snd_vmidi_output_work+0x111/0x390 sound/core/seq/seq_virmidi.c:151 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 96 50 28 f6 call 0xf62850a9 13: 48 89 df mov %rbx,%rdi 16: e8 1e a0 28 f6 call 0xf628a039 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 a5 ad 17 f6 call 0xf617add9 34: 65 8b 05 ee 86 a5 08 mov %gs:0x8a586ee(%rip),%eax # 0x8a58729 3b: 85 c0 test %eax,%eax 3d: 74 16 je 0x55 3f: 5b pop %rbx