------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] snd_rawmidi_write+0x360/0xbc0 sound/core/rawmidi.c:1617 WARNING: kernel/sched/core.c:9161 at __might_sleep+0x92/0xf0 kernel/sched/core.c:9157, CPU#1: syz.6.777/8839 Modules linked in: CPU: 1 UID: 0 PID: 8839 Comm: syz.6.777 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:__might_sleep+0xac/0xf0 kernel/sched/core.c:9157 Code: 00 00 48 89 3c 24 41 89 f5 4c 8d 35 be 94 e6 0e 43 80 3c 3c 00 74 08 48 89 df e8 7f 03 a1 00 48 8b 0b 4c 89 f7 89 ee 48 89 ca <67> 48 0f b9 3a 44 89 ee 48 8b 3c 24 eb b5 44 89 f1 80 e1 07 80 c1 RSP: 0018:ffffc90000a18c08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888053db5728 RCX: ffffffff89704a10 RDX: ffffffff89704a10 RSI: 0000000000000001 RDI: ffffffff907d1150 RBP: 0000000000000001 R08: 0000000000000100 R09: 1ffffffff20f426f R10: dffffc0000000000 R11: fffffbfff20f4270 R12: 1ffff1100a7b6ae5 R13: 00000000000011c8 R14: ffffffff907d1150 R15: dffffc0000000000 FS: 00007fb5075b56c0(0000) GS:ffff888124dda000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002000 CR3: 0000000028d55000 CR4: 0000000000350ef0 Call Trace: __cancel_work_sync+0x6d/0x110 kernel/workqueue.c:4552 mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:700 call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2374 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386 run_timer_base kernel/time/timer.c:2395 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221 Code: f7 e8 ed 53 bd f5 f7 c3 00 02 00 00 74 05 e8 e0 8d e9 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 84 6d ae f5 65 48 8b 05 9c f1 ad 07 48 85 c0 74 18 5b 41 5e e9 RSP: 0018:ffffc90006caf8a8 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000287 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e473d4d RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffffffff907a137f R09: 1ffffffff20f426f R10: dffffc0000000000 R11: fffffbfff20f4270 R12: ffff8880b8726100 R13: 0000000000000000 R14: ffff8880b8726100 R15: 0000000000000287 __mod_timer+0xb53/0xed0 kernel/time/timer.c:1139 schedule_timeout+0x14d/0x2c0 kernel/time/sleep_timeout.c:98 snd_rawmidi_write+0x3b4/0xbc0 sound/core/rawmidi.c:1619 do_loop_readv_writev fs/read_write.c:851 [inline] vfs_writev+0x4bb/0x990 fs/read_write.c:1060 do_writev+0x154/0x2e0 fs/read_write.c:1104 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb50679e159 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:00007fb5075b5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb506a26090 RCX: 00007fb50679e159 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007fb506835024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb506a26128 R14: 00007fb506a26090 R15: 00007ffc1eda5f08 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 89 3c 24 mov %rdi,(%rsp) 6: 41 89 f5 mov %esi,%r13d 9: 4c 8d 35 be 94 e6 0e lea 0xee694be(%rip),%r14 # 0xee694ce 10: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) 15: 74 08 je 0x1f 17: 48 89 df mov %rbx,%rdi 1a: e8 7f 03 a1 00 call 0xa1039e 1f: 48 8b 0b mov (%rbx),%rcx 22: 4c 89 f7 mov %r14,%rdi 25: 89 ee mov %ebp,%esi 27: 48 89 ca mov %rcx,%rdx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 44 89 ee mov %r13d,%esi 32: 48 8b 3c 24 mov (%rsp),%rdi 36: eb b5 jmp 0xffffffed 38: 44 89 f1 mov %r14d,%ecx 3b: 80 e1 07 and $0x7,%cl 3e: 80 .byte 0x80 3f: c1 .byte 0xc1