syzbot


BUG: scheduling while atomic in text_poke_set

Status: premoderation: reported on 2024/04/06 17:44
Reported-by: syzbot+aa2cca1df89597d5d349@syzkaller.appspotmail.com
First crash: 77d, last: 74d

Sample crash report:
BUG: scheduling while atomic: kworker/0:4/335/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff814ad8d8>] __queue_work+0x508/0xd70
CPU: 0 PID: 335 Comm: kworker/0:4 Tainted: G        W          6.1.75-syzkaller-00012-g5dc2bc296647 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events bpf_prog_free_deferred
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_preempt_disabled+0x13/0x20 kernel/sched/core.c:6864
 mutex_optimistic_spin kernel/locking/mutex.c:529 [inline]
 __mutex_lock_common kernel/locking/mutex.c:629 [inline]
 __mutex_lock+0x5b6/0x1ca0 kernel/locking/mutex.c:774
 __mutex_lock_slowpath+0xe/0x10 kernel/locking/mutex.c:1063
 mutex_lock+0x130/0x1e0 kernel/locking/mutex.c:295
 text_poke_set+0xac/0x170 arch/x86/kernel/alternative.c:1308
 bpf_arch_text_invalidate+0x22/0x40 arch/x86/net/bpf_jit_comp.c:233
 bpf_prog_pack_free+0x14b/0x3d0 kernel/bpf/core.c:943
 bpf_jit_binary_pack_free+0x38/0x80 kernel/bpf/core.c:1143
 bpf_jit_free+0x132/0x1e0 arch/x86/net/bpf_jit_comp.c:2538
 bpf_prog_free_deferred+0x63e/0x750 kernel/bpf/core.c:2571
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/09 22:40 android14-6.1 5dc2bc296647 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in text_poke_set
2024/04/06 17:43 android14-6.1 60534eef4739 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in text_poke_set
* Struck through repros no longer work on HEAD.