syzbot


BUG: scheduling while atomic in wait_for_common

Status: auto-obsoleted due to no activity on 2024/10/07 02:01
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+2e5fd55435a0d9acca62@syzkaller.appspotmail.com
First crash: 231d, last: 145d
Fix bisection: fixed by (bisect log) :
commit 95b7476f6f68d725c474e3348e89436b0abde62a
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

  
Bug presence (2)
Date Name Commit Repro Result
2024/05/15 lts (merge base) 883d1a956208 C [report] BUG: workqueue leaked lock or atomic in bpf_map_free_deferred
2024/05/15 upstream (ToT) 33e02dc69afb 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 wait_for_common 6 222d 232d 0/2 auto-obsoleted due to no activity on 2024/07/12 18:47
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/06/06 11:07 14m retest repro android14-6.1 report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/08/08 10:03 5h10m bisect fix android14-6.1 OK (1) job log
2024/06/28 23:32 2h28m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
BUG: scheduling while atomic: syz-executor124/1926/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff81b73417>] free_unref_page+0x177/0x5c0 mm/page_alloc.c:3621
CPU: 0 PID: 1926 Comm: syz-executor124 Not tainted 6.1.75-syzkaller-00009-g274e3e96961d #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:5964
 schedule_debug kernel/sched/core.c:5991 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6626
 schedule+0xc3/0x180 kernel/sched/core.c:6809
 schedule_timeout+0xa9/0x380 kernel/time/timer.c:1917
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common+0x39a/0x640 kernel/sched/completion.c:117
 wait_for_completion+0x18/0x20 kernel/sched/completion.c:138
 kthread_stop+0x118/0x420 kernel/kthread.c:721
 vhost_dev_cleanup+0x6f9/0x870 drivers/vhost/vhost.c:710
 vhost_vsock_dev_release+0x3af/0x410 drivers/vhost/vsock.c:774
 __fput+0x3ab/0x870 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x24d/0x2e0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x94/0xa0 kernel/entry/common.c:171
 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:0x7fba761c34aa
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 53 84 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 b3 84 02 00 8b 44 24
RSP: 002b:00007ffd49fa2fb0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 000000000000000a RCX: 00007fba761c34aa
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009
RBP: 00007ffd49fa3090 R08: 00007ffd49fe10b0 R09: 00007ffd49fa3120
R10: 00007ffd49fa3000 R11: 0000000000000293 R12: 00007fba76182e50
R13: 0000000000064413 R14: 0000000000064445 R15: 00007ffd49fa3020
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/15 19:13 android14-6.1 274e3e96961d 94b087b1 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/05/23 11:04 android14-6.1 0a5aada71cc9 4c2072ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/05/13 16:28 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/05/10 08:21 android14-6.1 cf685d2b0273 de979bc2 .config console log report info ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/04/27 08:50 android14-6.1 fa87a072a7fc 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_for_common
2024/04/25 00:39 android14-6.1 c61278bb705a 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/04/22 07:41 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/04/11 16:21 android14-6.1 ca4095789fda 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
2024/04/04 04:27 android14-6.1 af361f9a1066 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_for_common
* Struck through repros no longer work on HEAD.