BUG: sleeping function called from invalid context at kernel/workqueue.c:3414 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5862, name: syz.3.9 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz.3.9/5862: #0: ffff88805c682418 (sb_writers#5){.+.+}-{0:0}, at: do_coredump+0x1774/0x24a0 fs/coredump.c:833 #1: ffff88801d72ccf0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88801d72ccf0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: shmem_file_write_iter+0x82/0x120 mm/shmem.c:2873 #2: ffffc900001f0be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698 Preemption disabled at: [] unwind_next_frame+0xb7/0x2990 arch/x86/kernel/unwind_orc.c:479 CPU: 1 PID: 5862 Comm: syz.3.9 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:__sanitizer_cov_trace_switch+0x58/0xe0 kernel/kcov.c:345 Code: 48 8b 06 48 85 c0 0f 84 a4 00 00 00 41 57 41 56 41 54 53 48 8d 4c 09 01 48 8b 54 24 20 65 4c 8b 05 9d 27 7c 7e 45 31 c9 eb 08 <49> ff c1 4c 39 c8 74 77 4e 8b 54 ce 10 65 44 8b 1d 8b 27 7c 7e 41 RSP: 0018:ffffc90004efe5b0 EFLAGS: 00000293 RAX: 0000000000000003 RBX: ffffffff8f1f0d55 RCX: 0000000000000003 RDX: ffffffff813bc212 RSI: ffffffff8cfa0950 RDI: 0000000000000002 RBP: ffffc90004effa00 R08: ffff88801d27da00 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: ffffffff8f1f0d54 R13: ffffc90004efe6a8 R14: 0000000000000002 R15: dffffc0000000000 unwind_next_frame+0xe42/0x2990 arch/x86/kernel/unwind_orc.c:581 arch_stack_walk+0x144/0x190 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122 save_stack+0x125/0x230 mm/page_owner.c:128 __set_page_owner+0x1d/0x60 mm/page_owner.c:192 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 __folio_alloc+0x10/0x20 mm/page_alloc.c:4533 vma_alloc_folio+0x474/0x8f0 mm/mempolicy.c:2240 shmem_alloc_folio+0x1a9/0x2a0 mm/shmem.c:1679 shmem_alloc_and_acct_folio+0x1cb/0x6c0 mm/shmem.c:1704 shmem_get_folio_gfp+0xe1d/0x2b40 mm/shmem.c:2041 shmem_get_folio mm/shmem.c:2164 [inline] shmem_write_begin+0xf2/0x430 mm/shmem.c:2706 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4036 shmem_file_write_iter+0xfb/0x120 mm/shmem.c:2883 __kernel_write_iter+0x29f/0x6d0 fs/read_write.c:517 dump_emit_page fs/coredump.c:958 [inline] dump_user_range+0x418/0x840 fs/coredump.c:985 elf_core_dump+0x320e/0x37c0 fs/binfmt_elf.c:2184 do_coredump+0x1791/0x24a0 fs/coredump.c:834 get_signal+0x10da/0x1390 kernel/signal.c:2901 arch_do_signal_or_restart+0xc2/0x7b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 irqentry_exit_to_user_mode+0x9/0x30 kernel/entry/common.c:318 exc_page_fault+0x8c/0x100 arch/x86/mm/fault.c:1519 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0033:0x7f6fb419e161 Code: 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffef0 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f6fb4425fa0 RCX: 00007f6fb419e159 RDX: 0000000000000000 RSI: fffffffffffffef0 RDI: 00000000102c8000 RBP: 00007f6fb423506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f6fb4426038 R14: 00007f6fb4425fa0 R15: 00007ffcc9cacde8 vkms_vblank_simulate: vblank timer overrun ODEBUG: object ffffc900001f09c0 is NOT on stack ffffc90004ef8000, but annotated. ====================================================== ---------------- Code disassembly (best guess): 0: 48 8b 06 mov (%rsi),%rax 3: 48 85 c0 test %rax,%rax 6: 0f 84 a4 00 00 00 je 0xb0 c: 41 57 push %r15 e: 41 56 push %r14 10: 41 54 push %r12 12: 53 push %rbx 13: 48 8d 4c 09 01 lea 0x1(%rcx,%rcx,1),%rcx 18: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 1d: 65 4c 8b 05 9d 27 7c mov %gs:0x7e7c279d(%rip),%r8 # 0x7e7c27c2 24: 7e 25: 45 31 c9 xor %r9d,%r9d 28: eb 08 jmp 0x32 * 2a: 49 ff c1 inc %r9 <-- trapping instruction 2d: 4c 39 c8 cmp %r9,%rax 30: 74 77 je 0xa9 32: 4e 8b 54 ce 10 mov 0x10(%rsi,%r9,8),%r10 37: 65 44 8b 1d 8b 27 7c mov %gs:0x7e7c278b(%rip),%r11d # 0x7e7c27ca 3e: 7e 3f: 41 rex.B