BUG: sleeping function called from invalid context in mmc_free_host

Status: upstream: reported C repro on 2026/08/04 22:46
Reported-by: syzbot+48dcddd9870cdc33faee@syzkaller.appspotmail.com
First crash: 100d, last: 18d
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: sleeping function called from invalid context in mmc_free_host 5 1 49d 49d 0/3 upstream: reported on 2026/09/24 13:52
upstream BUG: sleeping function called from invalid context in mmc_free_host prio:high usb mmc 5 syz, C error 9784 23d 99d 26/29 upstream: reported C repro on 2026/08/05 22:45

Sample crash report:
BUG: sleeping function called from invalid context at kernel/workqueue.c:3414
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
1 lock held by swapper/1/0:
 #0: ffffc900001f0be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 0 Comm: swapper/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Call Trace:
 <IRQ>
 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/0x40 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
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:pv_native_safe_halt+0xf/0x10 arch/x86/kernel/paravirt.c:148
Code: 99 17 02 c3 cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d d3 38 35 00 fb f4 <c3> 66 0f 1f 00 55 41 57 41 56 41 54 53 50 8b 2f eb 2c 89 cb 80 f9
RSP: 0018:ffffc90000187de0 EFLAGS: 000002c6
RAX: 952d77f494b01e00 RBX: ffffffff81631f44 RCX: 952d77f494b01e00
RDX: 0000000000000001 RSI: ffffffff8acacfe0 RDI: ffffffff8b1d5160
RBP: ffffc90000187f20 R08: ffff8880b8d36b6b R09: 1ffff110171a6d6d
R10: dffffc0000000000 R11: ffffed10171a6d6e R12: 1ffff92000030fc8
R13: dffffc0000000000 R14: 1ffff110039c8780 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:753
 default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
 cpuidle_idle_call kernel/sched/idle.c:178 [inline]
 do_idle+0x334/0x5c0 kernel/sched/idle.c:302
 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:401
 start_secondary+0xee/0xf0 arch/x86/kernel/smpboot.c:323
 secondary_startup_64_no_verify+0x179/0x17b
 </TASK>
ODEBUG: object ffffc900001f09c0 is NOT on stack ffffc90000180000, but annotated.

======================================================
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	02 c3                	add    %bl,%al
   2:	cc                   	int3
   3:	cc                   	int3
   4:	cc                   	int3
   5:	cc                   	int3
   6:	cc                   	int3
   7:	cc                   	int3
   8:	cc                   	int3
   9:	f3 0f 1e fa          	endbr64
   d:	0f 0b                	ud2
   f:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  16:	00 00 00
  19:	f3 0f 1e fa          	endbr64
  1d:	66 90                	xchg   %ax,%ax
  1f:	0f 00 2d d3 38 35 00 	verw   0x3538d3(%rip)        # 0x3538f9
  26:	fb                   	sti
  27:	f4                   	hlt
* 28:	c3                   	ret <-- trapping instruction
  29:	66 0f 1f 00          	nopw   (%rax)
  2d:	55                   	push   %rbp
  2e:	41 57                	push   %r15
  30:	41 56                	push   %r14
  32:	41 54                	push   %r12
  34:	53                   	push   %rbx
  35:	50                   	push   %rax
  36:	8b 2f                	mov    (%rdi),%ebp
  38:	eb 2c                	jmp    0x66
  3a:	89 cb                	mov    %ecx,%ebx
  3c:	80                   	.byte 0x80
  3d:	f9                   	stc

Crashes (529):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/20 07:46 linux-6.6.y cecd39af8a1a 72cdc28d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/05 09:28 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/05 07:06 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/05 04:42 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/05 02:20 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/05 00:05 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/04 20:12 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/10 22:02 linux-6.6.y 8b73de7da85f 1fe56c0a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/08 06:05 linux-6.6.y 8b73de7da85f 680aa3e1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/04 09:05 linux-6.6.y 8b73de7da85f 801f0966 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/21 11:44 linux-6.6.y c610b395b0a5 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/21 07:26 linux-6.6.y c610b395b0a5 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/21 05:22 linux-6.6.y c610b395b0a5 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/21 02:55 linux-6.6.y c610b395b0a5 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/21 00:13 linux-6.6.y c610b395b0a5 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/09 09:08 linux-6.6.y 6436c12a2ced 5d63f80b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/25 14:45 linux-6.6.y 0aebf2870d53 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/25 14:29 linux-6.6.y 0aebf2870d53 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/22 05:14 linux-6.6.y 0aebf2870d53 4ba27f85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/21 08:35 linux-6.6.y cecd39af8a1a 61c200c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/20 14:11 linux-6.6.y cecd39af8a1a df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/20 14:11 linux-6.6.y cecd39af8a1a df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/19 17:54 linux-6.6.y cecd39af8a1a 72cdc28d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/17 02:45 linux-6.6.y cecd39af8a1a 432c0077 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/16 14:27 linux-6.6.y cecd39af8a1a 4c840a2f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/16 02:08 linux-6.6.y cecd39af8a1a 3f2522c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 23:07 linux-6.6.y cecd39af8a1a 3f2522c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 23:07 linux-6.6.y cecd39af8a1a 3f2522c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 19:45 linux-6.6.y cecd39af8a1a 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 15:28 linux-6.6.y cecd39af8a1a 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 11:54 linux-6.6.y a91a6aa9253c 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 08:40 linux-6.6.y a91a6aa9253c 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/15 08:37 linux-6.6.y a91a6aa9253c 8fb0ae89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/14 20:23 linux-6.6.y a91a6aa9253c 1a71827b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/14 20:19 linux-6.6.y a91a6aa9253c 1a71827b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/07 01:01 linux-6.6.y a91a6aa9253c f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/06 19:06 linux-6.6.y a91a6aa9253c f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/04 17:54 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/03 23:04 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/03 22:42 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/03 22:41 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/03 04:18 linux-6.6.y 79643295eba1 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/01 19:40 linux-6.6.y 79643295eba1 f5cdae2f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/01 15:43 linux-6.6.y 79643295eba1 f5cdae2f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/01 11:13 linux-6.6.y 79643295eba1 38f7f0d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/10/01 04:20 linux-6.6.y 79643295eba1 38f7f0d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/30 02:50 linux-6.6.y 79643295eba1 328436b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/25 13:06 linux-6.6.y 79643295eba1 f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/25 00:48 linux-6.6.y 79643295eba1 3c3cdf19 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/24 22:47 linux-6.6.y 79643295eba1 3c3cdf19 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/20 05:52 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/20 03:56 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/20 00:36 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/18 04:41 linux-6.6.y 79643295eba1 8d7d05f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/18 04:37 linux-6.6.y 79643295eba1 8d7d05f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/15 19:43 linux-6.6.y 79643295eba1 2daa4bb5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/15 17:19 linux-6.6.y 79643295eba1 2daa4bb5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/09/14 22:47 linux-6.6.y 79643295eba1 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
2026/08/04 22:45 linux-6.6.y aa0e49877a2e d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: sleeping function called from invalid context in mmc_free_host
* Struck through repros no longer work on HEAD.