syzbot


BUG: scheduling while atomic in do_nanosleep

Status: upstream: reported C repro on 2024/02/05 22:02
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+056307f23e322d10c336@syzkaller.appspotmail.com
First crash: 120d, last: 3d13h
Bug presence (2)
Date Name Commit Repro Result
2024/02/06 lts (merge base) 6139f2a02fe0 C [report] BUG: scheduling while atomic in do_nanosleep
2024/02/06 upstream (ToT) 54be6c6c5ae8 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: scheduling while atomic in do_nanosleep origin:lts C 80 9h02m 80d 0/2 upstream: reported C repro on 2024/02/08 03:49
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/02/22 19:04 35m retest repro android13-5.15-lts report log
2024/02/22 19:04 13m retest repro android13-5.15-lts report log

Sample crash report:
BUG: scheduling while atomic: syz-executor104/290/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff815294d6>] remove_wait_queue+0x26/0x140 kernel/sched/wait.c:56
CPU: 0 PID: 290 Comm: syz-executor104 Not tainted 5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707
 schedule_debug kernel/sched/core.c:5734 [inline]
 __schedule+0xd19/0x1590 kernel/sched/core.c:6402
 schedule+0x11f/0x1e0 kernel/sched/core.c:6595
 freezable_schedule include/linux/freezer.h:197 [inline]
 do_nanosleep+0x181/0x6a0 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0x1c5/0x3f0 kernel/time/hrtimer.c:2097
 common_nsleep+0x91/0xb0 kernel/time/posix-timers.c:1267
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1308 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1285
 __x64_sys_clock_nanosleep+0x9b/0xb0 kernel/time/posix-timers.c:1285
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe0d2dad603
Code: 00 00 00 00 00 66 90 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d 9e 0a 05 00 00 74 14 b8 e6 00 00 00 0f 05 <f7> d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10
RSP: 002b:00007fffbe5d8678 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 0000000000000150 RCX: 00007fe0d2dad603
RDX: 00007fffbe5d8690 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 00007fffbe5eb080 R09: 00007fffbe5eb0b0
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000050d3
R13: 00007fffbe5d86cc R14: 00007fffbe5d86e0 R15: 00007fffbe5d86d0
 </TASK>
BUG: scheduling while atomic: syz-executor104/290/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff84c71428>] schedule+0x118/0x1e0 kernel/sched/core.c:6594
CPU: 1 PID: 290 Comm: syz-executor104 Tainted: G        W         5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707
 schedule_debug kernel/sched/core.c:5734 [inline]
 __schedule+0xd19/0x1590 kernel/sched/core.c:6402
 schedule+0x11f/0x1e0 kernel/sched/core.c:6595
 exit_to_user_mode_loop+0x4d/0xe0 kernel/entry/common.c:163
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe0d2d83ab3
Code: fe ff e9 41 ff ff ff 31 c9 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 80 3d f1 a5 07 00 00 49 89 ca 74 14 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5d c3 0f 1f 40 00 48 83 ec 28 89 54 24 14 48
RSP: 002b:00007fffbe5d86b8 EFLAGS: 00000202 ORIG_RAX: 000000000000003d
RAX: 0000000000000000 RBX: 0000000000000164 RCX: 00007fe0d2d83ab3
RDX: 0000000040000001 RSI: 00007fffbe5d86cc RDI: 00000000ffffffff
RBP: 00000000000f4240 R08: 00007fffbe5eb080 R09: 00007fffbe5eb0b0
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000005407
R13: 00007fffbe5d86cc R14: 00007fffbe5d86e0 R15: 00007fffbe5d86d0
 </TASK>
BUG: scheduling while atomic: syz-executor104/290/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff84c71428>] schedule+0x118/0x1e0 kernel/sched/core.c:6594
CPU: 0 PID: 290 Comm: syz-executor104 Tainted: G        W         5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707
 schedule_debug kernel/sched/core.c:5734 [inline]
 __schedule+0xd19/0x1590 kernel/sched/core.c:6402
 schedule+0x11f/0x1e0 kernel/sched/core.c:6595
 freezable_schedule include/linux/freezer.h:197 [inline]
 do_nanosleep+0x181/0x6a0 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0x1c5/0x3f0 kernel/time/hrtimer.c:2097
 common_nsleep+0x91/0xb0 kernel/time/posix-timers.c:1267
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1308 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1285
 __x64_sys_clock_nanosleep+0x9b/0xb0 kernel/time/posix-timers.c:1285
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe0d2dad603
Code: 00 00 00 00 00 66 90 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d 9e 0a 05 00 00 74 14 b8 e6 00 00 00 0f 05 <f7> d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10
RSP: 002b:00007fffbe5d8678 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 0000000000000218 RCX: 00007fe0d2dad603
RDX: 00007fffbe5d8690 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 00007fffbe5eb080 R09: 00007fffbe5eb0b0
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000062df
R13: 00007fffbe5d86cc R14: 00007fffbe5d86e0 R15: 00007fffbe5d86d0
 </TASK>
BUG: scheduling while atomic: syz-executor104/290/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff84c71428>] schedule+0x118/0x1e0 kernel/sched/core.c:6594
CPU: 0 PID: 290 Comm: syz-executor104 Tainted: G        W         5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707
 schedule_debug kernel/sched/core.c:5734 [inline]
 __schedule+0xd19/0x1590 kernel/sched/core.c:6402
 schedule+0x11f/0x1e0 kernel/sched/core.c:6595
 freezable_schedule include/linux/freezer.h:197 [inline]
 do_nanosleep+0x181/0x6a0 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0x1c5/0x3f0 kernel/time/hrtimer.c:2097
 common_nsleep+0x91/0xb0 kernel/time/posix-timers.c:1267
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1308 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1285
 __x64_sys_clock_nanosleep+0x9b/0xb0 kernel/time/posix-timers.c:1285
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe0d2dad603
Code: 00 00 00 00 00 66 90 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d 9e 0a 05 00 00 74 14 b8 e6 00 00 00 0f 05 <f7> d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10
RSP: 002b:00007fffbe5d8678 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00000000000002b1 RCX: 00007fe0d2dad603
RDX: 00007fffbe5d8690 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 00007fffbe5eb080 R09: 00007fffbe5eb0b0
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000006f54
R13: 00007fffbe5d86cc R14: 00007fffbe5d86e0 R15: 00007fffbe5d86d0
 </TASK>

Crashes (52):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 04:51 android13-5.15-lts ad06eaf051cd 0d592ce4 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/13 06:37 android13-5.15-lts 993bed180178 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/12 10:06 android13-5.15-lts 993bed180178 27de0a5c .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/01 23:21 android13-5.15-lts 993bed180178 6baf5069 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/03/28 05:24 android13-5.15-lts 993bed180178 120789fd .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/03/12 18:42 android13-5.15-lts 993bed180178 c35c26ec .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/03/10 18:41 android13-5.15-lts 993bed180178 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/10 17:52 android13-5.15-lts 993bed180178 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/02/08 18:48 android13-5.15-lts 3802b45594e1 7f07e9b0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/02/05 21:59 android13-5.15-lts 3802b45594e1 e23e8c20 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/24 18:27 android13-5.15-lts ad06eaf051cd 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/23 16:32 android13-5.15-lts ad06eaf051cd 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/23 02:47 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/22 13:09 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/22 06:29 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/22 03:56 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/21 20:36 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/20 11:42 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/18 12:04 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/15 13:27 android13-5.15-lts ad06eaf051cd b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/14 16:27 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/14 16:18 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/12 22:03 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/12 19:41 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/10 16:33 android13-5.15-lts 993bed180178 4320ec32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/09 10:42 android13-5.15-lts 993bed180178 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/09 08:16 android13-5.15-lts 993bed180178 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/09 00:53 android13-5.15-lts 993bed180178 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/08 12:23 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/08 00:51 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/07 20:27 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/07 17:40 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/07 13:01 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/05 12:19 android13-5.15-lts 993bed180178 77230c29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/05 05:11 android13-5.15-lts 993bed180178 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/03 16:27 android13-5.15-lts 993bed180178 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/03 09:13 android13-5.15-lts 993bed180178 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/01 21:41 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/04/01 18:16 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/04/01 13:40 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/31 01:14 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/28 11:50 android13-5.15-lts 993bed180178 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/28 06:30 android13-5.15-lts 993bed180178 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/26 09:37 android13-5.15-lts 993bed180178 bcd9b39f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/18 03:48 android13-5.15-lts 993bed180178 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/03/17 14:43 android13-5.15-lts 993bed180178 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/14 20:46 android13-5.15-lts 993bed180178 8d8ee116 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: scheduling while atomic in do_nanosleep
2024/03/04 22:36 android13-5.15-lts 993bed180178 3717835d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/03/01 18:58 android13-5.15-lts 993bed180178 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2024/02/29 05:34 android13-5.15-lts 993bed180178 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
2023/12/30 05:16 android13-5.15-lts 28e3f5851a99 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: scheduling while atomic in do_nanosleep
* Struck through repros no longer work on HEAD.