syzbot


BUG: scheduling while atomic in exit_to_user_mode_loop

Status: upstream: reported C repro on 2025/05/25 06:17
Reported-by: syzbot+eb504c1673110fdd427e@syzkaller.appspotmail.com
First crash: 15d, last: 1d17h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: scheduling while atomic in exit_to_user_mode_loop ntfs3 syz error error 1 947d 974d 0/28 auto-obsoleted due to no activity on 2023/05/14 09:44
linux-6.1 BUG: scheduling while atomic in exit_to_user_mode_loop origin:lts-only C done 3 474d 527d 0/3 upstream: reported C repro on 2023/12/30 14:50
android-5-15 BUG: scheduling while atomic in exit_to_user_mode_loop origin:upstream C done 822 9d11h 527d 0/2 upstream: reported C repro on 2023/12/30 11:04
android-6-1 BUG: scheduling while atomic in exit_to_user_mode_loop C done 1087 345d 527d 0/2 auto-obsoleted due to no activity on 2024/09/07 07:43
linux-5.15 BUG: scheduling while atomic in exit_to_user_mode_loop origin:lts-only syz unreliable 2 477d 483d 0/3 auto-obsoleted due to no activity on 2024/10/07 06:36
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/06/08 08:00 9m retest repro android13-5.10-lts report log

Sample crash report:
loop0: rw=524288, want=672, limit=16
attempt to access beyond end of device
loop0: rw=524288, want=3670472, limit=16
attempt to access beyond end of device
loop0: rw=524288, want=790384, limit=16
attempt to access beyond end of device
loop0: rw=524288, want=14425508768, limit=16
BUG: scheduling while atomic: syz-executor249/276/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff8211ffe0>] kmap_atomic include/linux/highmem.h:156 [inline]
[<ffffffff8211ffe0>] z_erofs_reload_indexes+0x1d0/0x450 fs/erofs/zmap.c:132
CPU: 0 PID: 276 Comm: syz-executor249 Not tainted 5.10.237-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118
 dump_stack+0x15/0x1c lib/dump_stack.c:135
 __schedule_bug+0x177/0x230 kernel/sched/core.c:4545
 schedule_debug kernel/sched/core.c:4572 [inline]
 __schedule+0xc33/0x1310 kernel/sched/core.c:4700
 schedule+0x13c/0x1d0 kernel/sched/core.c:4884
 exit_to_user_mode_loop+0x4b/0xe0 kernel/entry/common.c:160
 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
 syscall_exit_to_user_mode+0x68/0x90 kernel/entry/common.c:274
 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd2464d6739
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc4ae80358 EFLAGS: 00000246 ORIG_RAX: 00000000000000dd
RAX: 0000000000000000 RBX: 00007fd2465214f4 RCX: 00007fd2464d6739
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007fd2465214c4 R08: 0000555500000000 R09: 0000555500000000
R10: 0000000000000003 R11: 0000000000000246 R12: 00007fd24652142c
R13: 0000000000000001 R14: 00007ffc4ae803a0 R15: 0000000000000003
erofs: (device loop0): z_erofs_readpage: failed to read, err [-117]

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/25 06:15 android13-5.10-lts 7e2543346ff7 ed351ea7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 BUG: scheduling while atomic in exit_to_user_mode_loop
2025/05/25 06:01 android13-5.10-lts 7e2543346ff7 ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: scheduling while atomic in exit_to_user_mode_loop
2025/05/25 06:01 android13-5.10-lts 7e2543346ff7 ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: scheduling while atomic in exit_to_user_mode_loop
2025/05/25 06:01 android13-5.10-lts 7e2543346ff7 ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: scheduling while atomic in exit_to_user_mode_loop
2025/05/25 06:01 android13-5.10-lts 7e2543346ff7 ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: scheduling while atomic in exit_to_user_mode_loop
* Struck through repros no longer work on HEAD.