BUG: scheduling while atomic in wait_for_common_io (2)

Status: upstream: reported C repro on 2026/06/24 21:11
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+e571cda6ea17f7d7d0a5@syzkaller.appspotmail.com
First crash: 95d, last: 13h09m
Fix bisection: failed (error log, bisect log)
  
▶ ▼ Bug presence (4)
Date Name Commit Repro Result
2026/09/20 android13-5.15-lts (ToT) 5bfe2b8c1439 C [report] BUG: scheduling while atomic in wait_for_common_io
2026/07/07 lts (merge base) bb610b6fc1c4 C [report] lost connection to test machine
2026/07/07 upstream (ToT) 0e35b9b6ec0f C [report] lost connection to test machine
2026/09/20 upstream (ToT) 518e5b794c06 C Didn't crash
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: scheduling while atomic in wait_for_common_io 5 3 897d 919d 0/2 auto-obsoleted due to no activity on 2024/07/13 09:12
▶ ▼ Fix bisection attempts (2)
Created Duration User Patch Repo Result
2026/08/26 17:00 0m bisect fix android13-5.15-lts error job log
2026/07/26 10:51 1h23m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
erofs: (device loop0): mounted with root inode @ nid 36.
BUG: scheduling while atomic: syz-executor325/303/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff8221b81c>] kmap_atomic include/linux/highmem-internal.h:196 [inline]
[<ffffffff8221b81c>] z_erofs_reload_indexes+0x30c/0x410 fs/erofs/zmap.c:148
CPU: 1 PID: 303 Comm: syz-executor325 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 dump_stack+0x15/0x20 lib/dump_stack.c:113
 __schedule_bug+0x180/0x230 kernel/sched/core.c:5733
 schedule_debug kernel/sched/core.c:5760 [inline]
 __schedule+0xc21/0x14a0 kernel/sched/core.c:6428
 schedule+0x11e/0x1e0 kernel/sched/core.c:6621
 schedule_timeout+0xba/0x340 kernel/time/timer.c:1898
 io_schedule_timeout+0x8d/0x100 kernel/sched/core.c:8655
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common_io+0x16f/0x2e0 kernel/sched/completion.c:123
 wait_for_completion_io+0x13/0x20 kernel/sched/completion.c:171
 z_erofs_runqueue+0x115d/0x11f0 fs/erofs/zdata.c:1514
 z_erofs_readpage+0x25d/0x4d0 fs/erofs/zdata.c:1604
 do_read_cache_page+0x58e/0xb10 mm/filemap.c:-1
 read_cache_page+0x50/0x70 mm/filemap.c:3676
 read_mapping_page include/linux/pagemap.h:513 [inline]
 erofs_readdir+0x138/0x920 fs/erofs/dir.c:84
 iterate_dir+0x25c/0x600 fs/readdir.c:-1
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0xf2/0x250 fs/readdir.c:354
 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354
 x64_sys_call+0x592/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218
 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:0x7fbda79ab249
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb739e2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007ffcb739e428 RCX: 00007fbda79ab249
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000001 R08: 00007ffcb739e428 R09: 00007ffcb739e428
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb739e418
R13: 0000000000000002 R14: 00007fbda7a34c80 R15: 0000000000000002
 </TASK>
erofs: (device loop0): z_erofs_readpage: failed to read, err [-117]
erofs: (device loop0): erofs_readdir: fail to readdir of logical block 144 of nid 36

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/28 06:59 android13-5.15-lts 776976664f31 a3c7249d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 BUG: scheduling while atomic in wait_for_common_io
2026/06/24 21:10 android13-5.15-lts c85054db4618 302586aa .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 BUG: scheduling while atomic in wait_for_common_io
* Struck through repros no longer work on HEAD.