syzbot


BUG: scheduling while atomic in exit_to_user_mode_loop

Status: upstream: reported C repro on 2023/12/30 14:50
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+d9de0b97ac13dcbb8aaf@syzkaller.appspotmail.com
First crash: 168d, last: 115d
Fix commit to backport (bisect log) :
tree: upstream
commit f19a4050455aad847fb93f18dc1fe502eb60f989
Author: Jiri Olsa <jolsa@kernel.org>
Date: Thu Dec 15 21:44:29 2022 +0000

  bpf: Do cleanup in bpf_bprintf_cleanup only when needed

[report pending]
  
Bug presence (2)
Date Name Commit Repro Result
2023/12/30 linux-6.1.y (ToT) 4aa6747d9352 C [report] INFO: rcu detected stall in corrupted
2023/12/30 upstream (ToT) f016f7547aee C Didn't crash
Similar bugs (4)
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 588d 615d 0/27 auto-obsoleted due to no activity on 2023/05/14 09:44
android-5-15 BUG: scheduling while atomic in exit_to_user_mode_loop origin:lts C 814 12d 168d 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 origin:lts C 1048 1h07m 168d 0/2 upstream: reported C repro on 2023/12/30 11:52
linux-5.15 BUG: scheduling while atomic in exit_to_user_mode_loop origin:lts-only syz unreliable 2 117d 123d 0/3 upstream: reported syz repro on 2024/02/12 22:31
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/01/01 08:05 5h49m fix candidate upstream job log (1)

Sample crash report:
BUG: scheduling while atomic: syz-executor289/6400/0x00000002
no locks held by syz-executor289/6400.
Modules linked in:
Preemption disabled at:
[<ffffffff81f8d240>] rcu_read_lock_sched include/linux/rcupdate.h:849 [inline]
[<ffffffff81f8d240>] fd_install+0x50/0x540 fs/file.c:607
Kernel panic - not syncing: scheduling while atomic: panic_on_warn set ...
CPU: 1 PID: 6400 Comm: syz-executor289 Not tainted 6.1.78-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 panic+0x318/0x75d kernel/panic.c:339
 check_panic_on_warn+0x7e/0xa0 kernel/panic.c:235
 __schedule_bug+0x1ba/0x220 kernel/sched/core.c:5788
 schedule_debug kernel/sched/core.c:5817 [inline]
 __schedule+0x14ed/0x4550 kernel/sched/core.c:6452
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 exit_to_user_mode_loop+0x44/0x100 kernel/entry/common.c:159
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 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:0x7f3f12adaf91
Code: 75 57 89 f0 25 00 00 41 00 3d 00 00 41 00 74 49 80 3d fa a0 07 00 00 74 6d 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 48 8b 54 24 28 64 48 2b 14 25
RSP: 002b:00007ffcc7bea9b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: 0000000000000003 RBX: 0000000000080001 RCX: 00007f3f12adaf91
RDX: 0000000000080001 RSI: 00007f3f12b25022 RDI: 00000000ffffff9c
RBP: 00007f3f12b25022 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffcc7beaa50
R13: 00007ffcc7beaf2c R14: 00007ffcc7beaf40 R15: 00007ffcc7beaf30
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/21 13:29 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: scheduling while atomic in exit_to_user_mode_loop
2023/12/30 14:49 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: scheduling while atomic in exit_to_user_mode_loop
2024/02/13 00:08 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: scheduling while atomic in exit_to_user_mode_loop
* Struck through repros no longer work on HEAD.