BUG: sleeping function called from invalid context at kernel/workqueue.c:3414 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5947, name: syz.0.33 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz.0.33/5947: #0: ffff88802eb1d230 (&vcpu->mutex){+.+.}-{3:3}, at: kvm_vcpu_ioctl+0x1d6/0xd00 virt/kvm/kvm_main.c:4140 #1: ffffc90000007be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698 Preemption disabled at: [] vcpu_enter_guest arch/x86/kvm/x86.c:10770 [inline] [] vcpu_run+0x3b48/0x7640 arch/x86/kvm/x86.c:11085 CPU: 0 PID: 5947 Comm: syz.0.33 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10212 start_flush_work kernel/workqueue.c:3414 [inline] __flush_work+0x10f/0xac0 kernel/workqueue.c:3474 __cancel_work_timer+0x3f8/0x560 kernel/workqueue.c:3562 mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:694 call_timer_fn+0x189/0x540 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:vcpu_enter_guest arch/x86/kvm/x86.c:10948 [inline] RIP: 0010:vcpu_run+0x470b/0x7640 arch/x86/kvm/x86.c:11085 Code: 7e 01 48 8b bc 24 38 01 00 00 48 89 fb 48 c1 eb 03 42 0f b6 04 23 84 c0 0f 85 83 19 00 00 c6 07 01 e8 29 06 7c 00 fb 4c 89 f0 <48> c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 52 18 ce 00 49 ff 06 RSP: 0018:ffffc90004f37560 EFLAGS: 00000286 RAX: ffff88802eb1ee58 RBX: 1ffff11005d63b9a RCX: 2aac4c93f8a63000 RDX: dffffc0000000000 RSI: ffffffff8acacbe0 RDI: ffffffff8b1d32e0 RBP: ffffc90004f37a70 R08: ffffffff911ed60f R09: 1ffffffff223dac1 R10: dffffc0000000000 R11: fffffbfff223dac2 R12: dffffc0000000000 R13: ffff88802eb1d258 R14: ffff88802eb1ee58 R15: ffff88802eb1d180 kvm_arch_vcpu_ioctl_run+0x1005/0x18b0 arch/x86/kvm/x86.c:11314 kvm_vcpu_ioctl+0x98a/0xd00 virt/kvm/kvm_main.c:4164 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f74e0d9e0d9 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:00007f74e1c05028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f74e1026090 RCX: 00007f74e0d9e0d9 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000008 RBP: 00007f74e0e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f74e1026128 R14: 00007f74e1026090 R15: 00007fff1ff3e288 ODEBUG: object ffffc900000079c0 is NOT on stack ffffc90004f30000, but annotated. ====================================================== ---------------- Code disassembly (best guess): 0: 7e 01 jle 0x3 2: 48 8b bc 24 38 01 00 mov 0x138(%rsp),%rdi 9: 00 a: 48 89 fb mov %rdi,%rbx d: 48 c1 eb 03 shr $0x3,%rbx 11: 42 0f b6 04 23 movzbl (%rbx,%r12,1),%eax 16: 84 c0 test %al,%al 18: 0f 85 83 19 00 00 jne 0x19a1 1e: c6 07 01 movb $0x1,(%rdi) 21: e8 29 06 7c 00 call 0x7c064f 26: fb sti 27: 4c 89 f0 mov %r14,%rax * 2a: 48 c1 e8 03 shr $0x3,%rax <-- trapping instruction 2e: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 33: 74 08 je 0x3d 35: 4c 89 f7 mov %r14,%rdi 38: e8 52 18 ce 00 call 0xce188f 3d: 49 ff 06 incq (%r14)