BUG: scheduling while atomic in wait_on_page_bit_common (2)

Status: upstream: reported C repro on 2026/07/20 23:53
Reported-by: syzbot+e4464ac9fc16c4743468@syzkaller.appspotmail.com
First crash: 4d23h, last: 4d23h
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: scheduling while atomic in wait_on_page_bit_common 5 C 3 4d23h 5d00h 0/2 upstream: reported C repro on 2026/07/20 23:24
android-5-15 BUG: scheduling while atomic in wait_on_page_bit_common 5 10 795d 856d 0/2 auto-obsoleted due to no activity on 2024/08/19 22:38

Sample crash report:
erofs: (device loop2): z_erofs_readahead: readahead error at page 5 @ nid 89
erofs: (device loop2): z_erofs_readahead: readahead error at page 4 @ nid 89
erofs: (device loop2): z_erofs_readahead: readahead error at page 3 @ nid 89
erofs: (device loop2): z_erofs_readahead: readahead error at page 2 @ nid 89
erofs: (device loop2): z_erofs_get_extent_compressedlen: cannot found CBLKCNT @ lcn 1 of nid 89
erofs: (device loop2): z_erofs_readahead: readahead error at page 1 @ nid 89
BUG: scheduling while atomic: syz.2.17/373/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff82219a4c>] kmap_atomic include/linux/highmem-internal.h:196 [inline]
[<ffffffff82219a4c>] z_erofs_reload_indexes+0x1cc/0x410 fs/erofs/zmap.c:132
CPU: 1 PID: 373 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/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
 io_schedule+0x84/0xe0 kernel/sched/core.c:8667
 wait_on_page_bit_common+0x6f8/0x9d0 mm/filemap.c:1366
 put_and_wait_on_page_locked mm/filemap.c:1457 [inline]
 filemap_update_page mm/filemap.c:2461 [inline]
 filemap_get_pages mm/filemap.c:2594 [inline]
 filemap_read+0xd8d/0x21e0 mm/filemap.c:2656
 generic_file_read_iter+0xac/0x420 mm/filemap.c:2816
 call_read_iter include/linux/fs.h:2206 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x6c0/0xc20 fs/read_write.c:485
 ksys_read+0x14a/0x260 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:631
 x64_sys_call+0x96d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
 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:0x7fe78d248e99
Code: ff c3 66 2e 0f 1f 84 00 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 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff0f0c22e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fe78d4d0fa0 RCX: 00007fe78d248e99
RDX: 0000000000002020 RSI: 0000200000000940 RDI: 0000000000000004
RBP: 00007fe78d2deeaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe78d4d0fac R14: 00007fe78d4d0fa0 R15: 00007fe78d4d0fa0
 </TASK>
erofs: (device loop2): z_erofs_get_extent_compressedlen: cannot found CBLKCNT @ lcn 1 of nid 89
BUG: scheduling while atomic: syz.2.17/373/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff82219b8c>] kmap_atomic include/linux/highmem-internal.h:196 [inline]
[<ffffffff82219b8c>] z_erofs_reload_indexes+0x30c/0x410 fs/erofs/zmap.c:148
CPU: 1 PID: 373 Comm: syz.2.17 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/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
 filemap_read_page+0xd3/0x330 mm/filemap.c:2401
 filemap_update_page mm/filemap.c:2481 [inline]
 filemap_get_pages mm/filemap.c:2594 [inline]
 filemap_read+0x142e/0x21e0 mm/filemap.c:2656
 generic_file_read_iter+0xac/0x420 mm/filemap.c:2816
 call_read_iter include/linux/fs.h:2206 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x6c0/0xc20 fs/read_write.c:485
 ksys_read+0x14a/0x260 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:631
 x64_sys_call+0x96d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
 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:0x7fe78d248e99
Code: ff c3 66 2e 0f 1f 84 00 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 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff0f0c22e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fe78d4d0fa0 RCX: 00007fe78d248e99
RDX: 0000000000002020 RSI: 0000200000000940 RDI: 0000000000000004
RBP: 00007fe78d2deeaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe78d4d0fac R14: 00007fe78d4d0fa0 R15: 00007fe78d4d0fa0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/20 23:52 android13-5.15-lts dc151d2e3144 de6a700d .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_on_page_bit_common
* Struck through repros no longer work on HEAD.