BUG: sleeping function called from invalid context at kernel/workqueue.c:4487 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5924, name: syz.1.20 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 4 locks held by syz.1.20/5924: #0: ffff8880563e0a88 (vm_lock){++++}-{0:0}, at: lock_vma_under_rcu+0x1d1/0x500 mm/mmap_lock.c:310 #1: ffff8880353ce548 (sb_pagefaults){.+.+}-{0:0}, at: percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] #1: ffff8880353ce548 (sb_pagefaults){.+.+}-{0:0}, at: __sb_start_write include/linux/fs/super.h:19 [inline] #1: ffff8880353ce548 (sb_pagefaults){.+.+}-{0:0}, at: sb_start_pagefault include/linux/fs/super.h:159 [inline] #1: ffff8880353ce548 (sb_pagefaults){.+.+}-{0:0}, at: ext4_page_mkwrite+0x202/0x1140 fs/ext4/inode.c:6804 #2: ffff888078328e78 (mapping.invalidate_lock#2){++++}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:1089 [inline] #2: ffff888078328e78 (mapping.invalidate_lock#2){++++}-{4:4}, at: ext4_page_mkwrite+0x237/0x1140 fs/ext4/inode.c:6807 #3: ffffc90000a08cc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd4/0x5e0 kernel/time/timer.c:1745 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 5924 Comm: syz.1.20 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x378/0x4d0 kernel/sched/core.c:9197 __cancel_work_sync+0x6d/0x110 kernel/workqueue.c:4487 mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:700 call_timer_fn+0x192/0x5e0 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+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 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:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198 Code: f7 e8 8d 7d cf f5 f7 c3 00 02 00 00 74 05 e8 40 5e fb f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 24 91 c0 f5 65 8b 05 1d 61 99 07 85 c0 74 18 5b 41 5e e9 ec 51 RSP: 0000:ffffc90004d47820 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000293 RCX: 0000000080000001 RDX: 0000000000000007 RSI: ffffffff8e22f174 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff90579d37 R09: 1ffffffff20af3a6 R10: dffffc0000000000 R11: fffffbfff20af3a7 R12: 0000000000000000 R13: ffff8880766187e0 R14: ffff888078328dc0 R15: dffffc0000000000 mark_buffer_dirty+0x261/0x410 fs/buffer.c:1116 block_commit_write+0x15d/0x270 fs/buffer.c:2196 block_page_mkwrite+0x32a/0x3a0 fs/buffer.c:2645 ext4_page_mkwrite+0xcf4/0x1140 fs/ext4/inode.c:6826 do_page_mkwrite+0x147/0x310 mm/memory.c:3684 wp_page_shared mm/memory.c:4085 [inline] do_wp_page+0x1973/0x4c70 mm/memory.c:4304 handle_pte_fault mm/memory.c:6395 [inline] __handle_mm_fault mm/memory.c:6517 [inline] handle_mm_fault+0x1490/0x3080 mm/memory.c:6686 do_user_addr_fault+0xa4d/0x1340 arch/x86/mm/fault.c:1343 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7fe4a18667e8 Code: be 08 00 00 00 48 89 ef 48 8d 50 ff 48 89 15 8f ef ee 00 44 88 78 ff 44 8b 3d 74 ef ee 00 e8 2f 52 ff ff 48 8b 05 80 ef ee 00 <44> 89 38 41 bf 04 00 00 00 48 83 c0 08 66 44 89 78 fc 83 05 6f ef RSP: 002b:00007ffc8835e9f0 EFLAGS: 00010206 RAX: 0000001b33b2421c RBX: 0000000000000026 RCX: ffffffff816c1e20 RDX: 0000001b33b2421c RSI: 0000000000000008 RDI: 00007fe4a2755720 RBP: 00007fe4a2755720 R08: 00007fe4a1c10000 R09: 00007fe4a1c26038 R10: 0000000000000001 R11: 0000000000000009 R12: 0000000000000000 R13: 00000000000000a0 R14: 0000000000000000 R15: 00000000000000a1 ODEBUG: object ffffc90000a08a80 is NOT on stack ffffc90004d40000, but annotated. ====================================================== ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 8d 7d cf lea -0x31(%rbp),%edi 5: f5 cmc 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 40 5e fb f5 call 0xf5fb5e53 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 24 91 c0 f5 call 0xf5c09153 <-- trapping instruction 2f: 65 8b 05 1d 61 99 07 mov %gs:0x799611d(%rip),%eax # 0x7996153 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: e9 .byte 0xe9 3e: ec in (%dx),%al 3f: 51 push %rcx