syzbot


BUG: scheduling while atomic in do_sys_poll

Status: upstream: reported C repro on 2024/04/15 22:23
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+3b792e8b261b2ba44906@syzkaller.appspotmail.com
First crash: 85d, last: 62d
Bug presence (2)
Date Name Commit Repro Result
2024/04/15 lts (merge base) 883d1a956208 C [report] BUG: scheduling while atomic in exit_to_user_mode_loop
2024/04/15 upstream (ToT) 96fca68c4fbf C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: scheduling while atomic in do_sys_poll 3 76d 84d 0/2 premoderation: reported on 2024/03/25 07:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/04/29 23:47 5m retest repro android14-6.1 report log

Sample crash report:
BUG: scheduling while atomic: sshd/284/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff83ff8840>] spin_lock_bh include/linux/spinlock.h:355 [inline]
[<ffffffff83ff8840>] release_sock+0x30/0x1b0 net/core/sock.c:3512
CPU: 1 PID: 284 Comm: sshd Not tainted 6.1.75-syzkaller-00025-g26f2c9be9ebe #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/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 schedule_hrtimeout_range_clock+0x1ef/0x360 kernel/time/hrtimer.c:2307
 schedule_hrtimeout_range+0x2a/0x40 kernel/time/hrtimer.c:2353
 poll_schedule_timeout fs/select.c:244 [inline]
 do_poll fs/select.c:966 [inline]
 do_sys_poll+0xdd7/0x1230 fs/select.c:1016
 __do_sys_ppoll fs/select.c:1122 [inline]
 __se_sys_ppoll+0x29c/0x330 fs/select.c:1102
 __x64_sys_ppoll+0xbf/0xd0 fs/select.c:1102
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f862bb19ad5
Code: 85 d2 74 0d 0f 10 02 48 8d 54 24 20 0f 11 44 24 20 64 8b 04 25 18 00 00 00 85 c0 75 27 41 b8 08 00 00 00 b8 0f 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 75 48 8b 15 24 73 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc257bc880 EFLAGS: 00000246 ORIG_RAX: 000000000000010f
RAX: ffffffffffffffda RBX: 00000000000668a0 RCX: 00007f862bb19ad5
RDX: 00007ffc257bc8a0 RSI: 0000000000000004 RDI: 000055e2d9f1b840
RBP: 000055e2d9f1a410 R08: 0000000000000008 R09: 0000000000000000
R10: 00007ffc257bc988 R11: 0000000000000246 R12: 000055e2d9101aa4
R13: 0000000000000001 R14: 000055e2d91023e8 R15: 00007ffc257bc908
 </TASK>
BUG: scheduling while atomic: sshd/284/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff83ff8840>] spin_lock_bh include/linux/spinlock.h:355 [inline]
[<ffffffff83ff8840>] release_sock+0x30/0x1b0 net/core/sock.c:3512
CPU: 1 PID: 284 Comm: sshd Tainted: G        W          6.1.75-syzkaller-00025-g26f2c9be9ebe #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/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f862bac2773
Code: 00 f3 a5 48 8d 74 24 88 48 b9 ff ff ff 7f fe ff ff ff 48 21 c8 48 89 44 24 88 41 ba 08 00 00 00 44 89 c7 b8 0e 00 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 06 41 89 c0 41 f7 d8 44 89 c0 5a c3 41
RSP: 002b:00007ffc257bc8a0 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f862bac2773
RDX: 00007ffc257bc988 RSI: 00007ffc257bc908 RDI: 0000000000000000
RBP: 000055e2d9f1a410 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 000055e2d9101aa4
R13: 000000000000001c R14: 000055e2d91023e8 R15: 00007ffc257bc908
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/15 22:15 android14-6.1 26f2c9be9ebe b9af7e61 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in do_sys_poll
2024/04/14 03:58 android14-6.1 cfa154389a65 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in do_sys_poll
2024/04/11 12:42 android14-6.1 be55946e207c 33b9e058 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in do_sys_poll
2024/04/08 01:28 android14-6.1 60534eef4739 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in do_sys_poll
2024/04/05 22:49 android14-6.1 60534eef4739 77230c29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in do_sys_poll
2024/03/29 01:19 android14-6.1 8f2f0a3b12b9 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in do_sys_poll
2024/03/27 13:44 android14-6.1 eef3b6e52937 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in do_sys_poll
2024/03/23 19:40 android14-6.1 d518ca9dbbe9 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in do_sys_poll
* Struck through repros no longer work on HEAD.