syzbot
BUG: scheduling while atomic in mmc_free_host
Status:
upstream: reported on 2026/10/15 19:57
Reported-by: syzbot+df65d37956d81d804ebc@syzkaller.appspotmail.com
First crash: 3d02h, last: 3d02h
Sample crash report:
BUG: scheduling while atomic: udevd/4419/0x00000101
2 locks held by udevd/4419:
#0: ffffffff8d11efa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
#1: ffffc90000007bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline]
#1: ffffc90000007bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xca/0x540 kernel/time/timer.c:1638
Modules linked in:
Preemption disabled at:
[<ffffffff81493afd>] softirq_handle_begin kernel/softirq.c:414 [inline]
[<ffffffff81493afd>] handle_softirqs+0xfd/0x830 kernel/softirq.c:552
Kernel panic - not syncing: scheduling while atomic: panic_on_warn set ...
CPU: 0 PID: 4419 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Call Trace:
<IRQ>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
panic+0x2f8/0x850 kernel/panic.c:309
check_panic_on_warn+0x80/0xa0 kernel/panic.c:229
__schedule_bug+0x193/0x1f0 kernel/sched/core.c:5589
schedule_debug kernel/sched/core.c:5618 [inline]
__schedule+0x1302/0x4350 kernel/sched/core.c:6286
schedule+0x11b/0x1e0 kernel/sched/core.c:6478
__cancel_work_timer+0x1eb/0x560 kernel/workqueue.c:3167
mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:663
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:91 [inline]
RIP: 0010:lock_is_held_type+0x3d/0x190 kernel/locking/lockdep.c:5801
Code: 28 00 00 00 48 89 44 24 08 bd ff ff ff ff 83 3d 6c 42 a9 04 00 0f 84 03 01 00 00 65 8b 05 db 5f 40 76 85 c0 0f 85 f4 00 00 00 <65> 48 8b 1d 4b 56 40 76 83 bb ec 0a 00 00 00 0f 85 df 00 00 00 41
RSP: 0018:ffffc9000401f838 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffffff8d147040 RCX: f6780242e5c28000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8d11efa0
RBP: 00000000ffffffff R08: dffffc0000000000 R09: 1ffffffff2202a18
R10: dffffc0000000000 R11: fffffbfff2202a19 R12: ffff88802aa3f8c0
R13: ffffc9000401fc60 R14: ffff88807f269dec R15: dffffc0000000000
task_css include/linux/cgroup.h:496 [inline]
mem_cgroup_from_task+0x96/0x110 mm/memcontrol.c:935
get_obj_cgroup_from_current+0x146/0x2f0 mm/memcontrol.c:2926
memcg_slab_pre_alloc_hook mm/slab.h:283 [inline]
slab_pre_alloc_hook+0x7d/0xc0 mm/slab.h:497
slab_alloc_node mm/slub.c:3139 [inline]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc+0x3d/0x280 mm/slub.c:3238
kmem_cache_zalloc include/linux/slab.h:728 [inline]
__alloc_file+0x25/0x240 fs/file_table.c:132
alloc_empty_file+0x90/0x180 fs/file_table.c:181
path_openat+0x11c/0x2fb0 fs/namei.c:3779
do_filp_open+0x1df/0x400 fs/namei.c:3820
do_sys_openat2+0x14b/0x500 fs/open.c:1255
do_sys_open fs/open.c:1271 [inline]
__do_sys_openat fs/open.c:1287 [inline]
__se_sys_openat fs/open.c:1282 [inline]
__x64_sys_openat+0x135/0x160 fs/open.c:1282
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f1a8e033407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff5cd101b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f1a8df45880 RCX: 00007f1a8e033407
RDX: 0000000000080000 RSI: 00005634df67a570 RDI: ffffffffffffff9c
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00005634de53f95f
R13: 00005634de550660 R14: 0000000000000000 R15: 00000000ffffffff
</TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
0: 28 00 sub %al,(%rax)
2: 00 00 add %al,(%rax)
4: 48 89 44 24 08 mov %rax,0x8(%rsp)
9: bd ff ff ff ff mov $0xffffffff,%ebp
e: 83 3d 6c 42 a9 04 00 cmpl $0x0,0x4a9426c(%rip) # 0x4a94281
15: 0f 84 03 01 00 00 je 0x11e
1b: 65 8b 05 db 5f 40 76 mov %gs:0x76405fdb(%rip),%eax # 0x76405ffd
22: 85 c0 test %eax,%eax
24: 0f 85 f4 00 00 00 jne 0x11e
* 2a: 65 48 8b 1d 4b 56 40 mov %gs:0x7640564b(%rip),%rbx # 0x7640567d <-- trapping instruction
31: 76
32: 83 bb ec 0a 00 00 00 cmpl $0x0,0xaec(%rbx)
39: 0f 85 df 00 00 00 jne 0x11e
3f: 41 rex.B
* Struck through repros no longer work on HEAD.