------------[ 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:9191 at __might_sleep+0x92/0xf0 kernel/sched/core.c:9187, CPU#0: syz.2.65/6086 Modules linked in: CPU: 0 UID: 0 PID: 6086 Comm: syz.2.65 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2026 RIP: 0010:__might_sleep+0xac/0xf0 kernel/sched/core.c:9187 Code: 00 00 48 89 3c 24 41 89 f5 4c 8d 35 4e b3 e6 0e 43 80 3c 3c 00 74 08 48 89 df e8 7f 6f 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:ffffc90000007c08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880276bb7f0 RCX: ffffffff8972ae10 RDX: ffffffff8972ae10 RSI: 0000000000000001 RDI: ffffffff907d6490 RBP: 0000000000000001 R08: 0000000000000100 R09: 1ffffffff20f4caf R10: dffffc0000000000 R11: fffffbfff20f4cb0 R12: 1ffff11004ed76fe R13: 00000000000011d1 R14: ffffffff907d6490 R15: dffffc0000000000 FS: 00007efea17336c0(0000) GS:ffff888124cc6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000004000 CR3: 000000007d624000 CR4: 0000000000350ef0 Call Trace: __cancel_work_sync+0x6d/0x110 kernel/workqueue.c:4561 mmc_free_host+0x19/0x40 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: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+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 0d 11 ba f5 f7 c3 00 02 00 00 74 05 e8 a0 5e e6 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 44 0e ab f5 65 48 8b 05 4c a0 ab 07 48 85 c0 74 18 5b 41 5e e9 RSP: 0018:ffffc90004eb7908 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000282 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e4170b9 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff907a657f R09: 1ffffffff20f4caf R10: dffffc0000000000 R11: fffffbfff20f4cb0 R12: ffffffff81b4b400 R13: ffffc90004eb7980 R14: ffffffff9acd6b68 R15: ffffc90004eb7980 timer_init_key_on_stack+0x3c/0x110 kernel/time/timer.c:816 schedule_timeout+0x140/0x2c0 kernel/time/sleep_timeout.c:96 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:0x7efea079e159 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:00007efea1733028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007efea0a25fa0 RCX: 00007efea079e159 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 000000000000000a RBP: 00007efea083506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efea0a26038 R14: 00007efea0a25fa0 R15: 00007ffc6c855958 ---------------- 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 4e b3 e6 0e lea 0xee6b34e(%rip),%r14 # 0xee6b35e 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 6f a1 00 call 0xa16f9e 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