syzbot


BUG: soft lockup in bpf_prog_free_deferred

Status: upstream: reported C repro on 2024/04/26 18:58
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+cb1a5c14e7e68140e68d@syzkaller.appspotmail.com
First crash: 98d, last: 41d
Bug presence (3)
Date Name Commit Repro Result
2024/04/28 android13-5.15-lts (ToT) 5d96939590c0 C [report] BUG: soft lockup in smp_call_function
2024/04/28 lts (merge base) 458ce51d0356 C Didn't crash
2024/04/28 upstream (ToT) 2c8159388952 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in bpf_prog_free_deferred bpf 1 346d 346d 0/27 auto-obsoleted due to no activity on 2023/11/07 19:00
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/07/07 10:25 10m retest repro android13-5.15-lts report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [kworker/0:4:844]
Modules linked in:
CPU: 0 PID: 844 Comm: kworker/0:4 Tainted: G        W         5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events bpf_prog_free_deferred
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:190
Code: 00 00 00 0f 0b 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb e8 13 00 00 00 48 8b 3d 64 23 96 05 48 89 de e8 d4 5f 41 00 5b 5d c3 cc <55> 48 89 e5 48 8b 45 08 65 48 8b 0d 40 47 92 7e 65 8b 15 41 47 92
RSP: 0018:ffffc900009a7878 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 1ffff1103ee276cd RCX: ffff88810bba13c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900009a7988 R08: ffffffff8165816a R09: ffffc900009a77c0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff8881f713b668 R14: ffff8881f7038280 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5dd8fa701d CR3: 00000001063ba000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x80 kernel/smp.c:1135
 on_each_cpu include/linux/smp.h:71 [inline]
 flush_tlb_kernel_range+0x49/0x210 arch/x86/mm/tlb.c:1026
 __purge_vmap_area_lazy+0x230/0x1690 mm/vmalloc.c:1694
 _vm_unmap_aliases+0x339/0x3b0 mm/vmalloc.c:2118
 vm_remove_mappings mm/vmalloc.c:2611 [inline]
 __vunmap+0x617/0x8f0 mm/vmalloc.c:2642
 __vfree mm/vmalloc.c:2700 [inline]
 vfree+0x7f/0xb0 mm/vmalloc.c:2731
 module_memfree+0x17/0x30 kernel/module.c:2150
 bpf_jit_free_exec+0x15/0x20 kernel/bpf/core.c:867
 bpf_jit_binary_free kernel/bpf/core.c:914 [inline]
 bpf_jit_free+0x98/0x240 kernel/bpf/core.c:927
 bpf_prog_free_deferred+0x61e/0x730 kernel/bpf/core.c:2296
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/26 18:52 android13-5.15-lts 5d96939590c0 059e9963 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in bpf_prog_free_deferred
2024/06/10 10:15 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in bpf_prog_free_deferred
2024/05/22 02:00 android13-5.15-lts 5d96939590c0 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in bpf_prog_free_deferred
2024/05/18 22:09 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in bpf_prog_free_deferred
2024/04/13 18:49 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in bpf_prog_free_deferred
* Struck through repros no longer work on HEAD.